Hacker News new | past | comments | ask | show | jobs | submit login

If you're using Pulseaudio, replace

  $ ./a.out > /dev/dsp
with

  $ ./a.out | pacat --rate=8192



That 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.


Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: