Slashdot Mirror


User: Wataru

Wataru's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. Re:A possible solution. on RealNetworks Licenses MS Windows Media Codec · · Score: 1

    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.