I'm working with some code from an article "Introduction to Sound Programming with ALSA" from Linux Journal (http://www.linuxjournal.com/article/6735), from around 2004. It looked interesting, so I took the "listing3" and "listing4" files and compiled them (gcc filename.c -lasound).
I have a Wolfson audio card installed on a PI. I have been able to get the "listing4" recording program compiled and recording, and I can playback the "sound.raw" files created using the "aplay" scripts that Ragnar Jensen provided recently. Getting the "listing3" playback program to play back has all kinds of errors, mostly "underrun" errors. I did notice that the files played using the "aplay" scripts sounded faster (up-tempo) than the original recording.
I was wondering if anyone would take a look at this and see what might be going on.
Thanks!
- Posts: 21
- Joined: Sat Aug 11, 2012 2:20 pm






