master
Paul Goeser 14 years ago
parent 3d3874909e
commit d743e894d2

27
gg.c

@ -93,9 +93,8 @@ int main(void)
if(length==0){ if(length==0){
debug = 2; debug = 2;
} }
debug = ((length>>0)&0x3) + 1; debug = length & 0xff;
debug += 1;
timer_init_tiny26(); timer_init_tiny26();
sei(); sei();
@ -108,14 +107,24 @@ int main(void)
} // */ } // */
// debug = 0; // debug = 0;
uint8_t i,r; uint8_t i,r,b, sound;
uint16_t a,to; uint16_t a,to;
for(to=0; to<16000; to++){ for(b=0; b<8; b++){
i += debug*8; sound = (debug & 1)+1;
a = i<<8; debug >>= 1;
r=1; for(to=0; to<3200; to++){
while(r){ i += sound*8;
r=ringbuf_put(&rb, a); a = i<<8;
r=1;
while(r){
r=ringbuf_put(&rb, a);
}
}
for(to=0; to<800; to++){
r=1;
while(r){
r=ringbuf_put(&rb, 0);
}
} }
}// */ }// */

Loading…
Cancel
Save