4 ms·
If you're using Pulseaudio, replace $ ./a.out > /dev/dsp with $ ./a.out | pacat --rate=8192
by a3_nm 15y ago
If you're using Pulseaudio, replace
$ ./a.out > /dev/dsp
with
$ ./a.out | pacat --rate=8192
- stygianguest 15y agoThat doesn't work for their example: main(t){for(t=0;;t++)putchar(t*(((t>>12)|(t>>8))&(63&(t>>4))));} use this in stead: ./a.out | pacat --rate=8000 --channels=1 --format=u8 Note that the rate only changes the speed, just like the RPM of a record would.
- Cieplak 15y agoThanks!