I have a multiseat setup which is missing the separated sound feature, for that I've bought a usb sound card.
now I have two cards, the O\B one and the usb one.
both cards do work (tested them using mplayer) so I've went to devise a way to try and assign them, the best idea that I've cameup is to use .asoundrc so I created the following file:
pcm.!default { type hw card 0 } ctl.!default { type hw card 0 } while testing I've discovered that if card is set to 0, I get this: MPlayer2 2.0-467-ga816810 (C) 2000-2012 MPlayer Team Playing /mnt/storage/audio/Anastacia - Left Outside Alone.mp3. Detected file format: MPEG audio layer 2/3 (libavformat) [mp3 @ 0x7feb4ad36280]max_analyze_duration reached [mp3 @ 0x7feb4ad36280]Estimating duration from bitrate, this may be inaccurate [lavf] stream 0: audio (mp3), -aid 0 Clip info: track: encoded_by: copyright: TOPE: composer: artist: Anastasia album: Anastasia title: Left Outside Alone genre: Pop date: 2004 Load subtitles in /mnt/storage/audio/ ========================================================================== Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400) Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III) ========================================================================== [AO_ALSA] Playback open error: Device or resource busy [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory ao_nas: init(): Can't open nas audio server -> nosound [AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le [AO SDL] Unable to open audio: No available audio device DVB card number must be between 1 and 4 AO: [null] 44100Hz 2ch s16le (2 bytes per sample) Video: no video Starting playback... .1 (03:50.1) 0.3% but if I set card to 3, the usb card plays without any problem. if I remove the file, the O\B card plays ok. here is my cards layout: **** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: ALC889 Analog [ALC889 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 1: ALC889 Digital [ALC889 Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 3: Device [Generic USB Audio Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 why is that? is there a way to configure it that it will play depeding on the card?
Thanks.
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user