-----Original Message----- From: Takashi Iwai <tiwai@xxxxxxx> To: Krivenok Dmitry <_asr_@xxxxxxxx> Date: Wed, 02 Aug 2006 19:37:46 +0200 Subject: Re: Re[2]: Virtual sound card > > At Wed, 02 Aug 2006 21:31:18 +0400, > Krivenok Dmitry wrote: > > > > > > > > -----Original Message----- > > From: Takashi Iwai <tiwai@xxxxxxx> > > To: Krivenok Dmitry <_asr_@xxxxxxxx> > > Date: Wed, 02 Aug 2006 18:26:52 +0200 > > Subject: Re: Virtual sound card > > > > > > > > At Wed, 02 Aug 2006 16:16:03 +0400, > > > Krivenok Dmitry wrote: > > > > > > > > Hello All! > > > > > > > > What is the simplest way to implement virtual sound card? > > > > Special kernel module, which represents virtual device driver? Special plugin? > > > > Or something else? > > > > > > How about JACK? > > > > > > We have already some alsa-lib plugins, such as file plugin. > > > You can record a PCM stream to a file while using another real > > > device. > > > > > > > Yes, I know about file plugin. > > It works fine with commands like this: > > aplay -D file myfile.wav > > > > Unfortunately, I don't know how to use it with Skype (new version, which supports ALSA). > > Skype supports real cards (e.g. my VIA8233) and virtual cards (e.g. dummy), i.e. > > devices with ALSA interface. > > But "file" isn't ALSA-device. > > So, skype checks only the devices of kernel drivers? And no way to > edit it manually? > > Sigh, we really have to provide a good API for the device > enumeration. > > > How to combine file plugin with alsa-device? Is it possible at all? > > It's hackish but possible. You can override "hw" and/or "plughw" > definition as you like, such as > > pcm.!hw { > type file > slave.pcm { > type hw > card 0 > } > file "foo.out" > } > This is my asoundrc: krivenok-home linux # cat ~/.asoundrc pcm.!hw { type file slave.pcm { type hw card 0 } file "foo.out" } Attempt to play the file: krivenok-home linux # aplay /tmp/pcm.raw ALSA lib confmisc.c:670:(snd_func_card_driver) cannot find card '0' ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:391:(snd_func_concat) error evaluating strings ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1070:(snd_func_refer) error evaluating name ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:3947:(snd_config_expand) Evaluate error: No such device ALSA lib pcm.c:2146:(snd_pcm_open_noupdate) Unknown PCM default aplay: main:547: audio open error: No such device What is wrong? P.S. Sorry, if my questions are stupid. I am new here :) > > Takashi > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-devel