On Thu, 29 Jun 2007, Mohan Kashyap wrote: > I waould want to capture audio data from the sound card as and when an alsa application starts playing. I could not figure out what lines must be added in .asound.rc for this. > As I said the easiest way is to simply copy the sound file that is playing. However if what you want is really something different, like capturing a sound source that does not come from a soundfile perhaps you should tell us, so that better advice can be given. Also there are lots of threads in this news feed on exactly that subject, so looking at old threads might well be useful to you. > Mohan > > On Thu, 28 Jun 2007 Bill Unruh wrote : >> On Thu, 28 Jun 2007, Mohan Kashyap wrote: >> >>> >>> Hi ALL, >>> >>> I have found a sample audio capture program from the web, but it doesnt >>> seem to capture the output from aplay. The sample prograqm is as below, >> >> What are you trying to do? aplay is for playing digital audio files on your >> computer. Ie, cp would be a much easier way to 'capture' them >> Of course what you might be trying to do is to capture say a dvd sgtream or >> realplayer stream. There have been a number of threads in this group on >> that topic over the years. >> >>> >>> snd_pcm_open(SND_PCM_STREAM_CAPTURE); >>> Then all the hardware configurations; >>> Then the snd_pcm_readi(); >>> >>> 1. I have run this program as "./snd_capture default", the program >>> waits for sound data. >>> 2. I have run "aplay -D default phone.wav", but this data is not captured by the program in 1. >>> >>> Any help will be appreciated. >>> >>> Thanks >>> Mohan >> >> -- William G. Unruh | Canadian Institute for| Tel: +1(604)822-3273 >> Physics&Astronomy | Advanced Research | Fax: +1(604)822-5324 >> UBC, Vancouver,BC | Program in Cosmology | unruh@xxxxxxxxxxxxxx >> Canada V6T 1Z1 | and Gravity | www.theory.physics.ubc.ca/ > -- William G. Unruh | Canadian Institute for| Tel: +1(604)822-3273 Physics&Astronomy | Advanced Research | Fax: +1(604)822-5324 UBC, Vancouver,BC | Program in Cosmology | unruh@xxxxxxxxxxxxxx Canada V6T 1Z1 | and Gravity | www.theory.physics.ubc.ca/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user