Comment Re:A possible solution. (Score 1) 115
If all you want to do is grab the audio stream going to your sound device, you can use the ALSA (http://www.alsa-project.org) drivers for that.
Basically you do: cat /proc/asound/card1/pcmloopD0S0p > sound.raw
Once your sound sample has finished playing you cancel the above operation and then use 'sox' to convert the raw audio format to .wav or whatever. eg. sox -r 20100 -w -s sound.raw sound.wav
The only problem I had with this is that the sampling rate of the RA stream is not one accepted by any of the MP3 encoders I could find, so I'm stuck with big ugly .wav's.
Basically you do: cat
Once your sound sample has finished playing you cancel the above operation and then use 'sox' to convert the raw audio format to
The only problem I had with this is that the sampling rate of the RA stream is not one accepted by any of the MP3 encoders I could find, so I'm stuck with big ugly