USB Mic support under linux
gfaccin
Join Date: 2013-12-15 Member: 190116Members
Hi all!
I used to play the game under Windows, but now with a linux release... bye bye Win for sure!
Thing is, my usb mic is not working with the game under linux. I've already done my homework, googled a lot, looks like a game issue to me.
The hardware is a logitech usb mic. The sound card for output audio is a Xonar 7.1 PCI audio board.
I can listen to my own voice in the steam client "Voice" tab, and also in all other installed software. However, since I have the USB mic and the pci board in the system, I have to choose the correct input device in the steam client.
Now inside the game, I can't choose which one I will use for input. The game only prints a "default" choice, which I believe, is trying to fetch the audio from the Xonar board. Thus, the mic ceases to work. I see no way to fix this.
Perhaps the game could fetch the chosen input channel from the steam client? Or somehow, list the installed alsa devices, in order to allow the player to correctly choose the mic?
Any suggestions on how to fix this are welcome.
Thanks.
I used to play the game under Windows, but now with a linux release... bye bye Win for sure!
Thing is, my usb mic is not working with the game under linux. I've already done my homework, googled a lot, looks like a game issue to me.
The hardware is a logitech usb mic. The sound card for output audio is a Xonar 7.1 PCI audio board.
I can listen to my own voice in the steam client "Voice" tab, and also in all other installed software. However, since I have the USB mic and the pci board in the system, I have to choose the correct input device in the steam client.
Now inside the game, I can't choose which one I will use for input. The game only prints a "default" choice, which I believe, is trying to fetch the audio from the Xonar board. Thus, the mic ceases to work. I see no way to fix this.
Perhaps the game could fetch the chosen input channel from the steam client? Or somehow, list the installed alsa devices, in order to allow the player to correctly choose the mic?
Any suggestions on how to fix this are welcome.
Thanks.
Comments
My install has 2 devices, Default and default. Default doesn't work. Do you see something simialr or just eh one default?
Some more system info would be helpful as well.
I see just one default input device, which does not work.
About the system info, what exactly would you need? Just say it, I'll post it here.
more specific instructions here: http://wiki.unknownworlds.com/ns2/Linux_Guide#Debug_information
Have you tried to select your mic in the systems sound options as standard? In most cases this should fix the problem.
About the hardware, these are the cards:
08:00.0 Multimedia audio controller: C-Media Electronics Inc CMI8788 [Oxygen HD Audio]
Bus 004 Device 002: ID 0556:0001 Asahi Kasei Microsystems Co., Ltd AK5370 I/F A/D Converter
The last one is the mic, which the game should listen to.
They are listed by alsa like this:
piranha gfaccin # arecord --list-devices
**** List of CAPTURE Hardware Devices ****
card 0: DS [Xonar DS], device 0: Multichannel [Multichannel]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: DS [Xonar DS], device 1: Digital [Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: AK5370 [AK5370], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
I believe I found a solution:
Editing ~/.asoundrc and putting this snippet below:
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "hw:0,0"
}
capture.pcm {
type plug
slave.pcm "hw:2,0"
}
}
Thanks for your help! Let me make sure this is working for good, but I believe the issue is fixed now.