Well, I've got multiple sound devices on my system (integrated HDA SB ATI sound card, headset connected to USB sound card, and my webcam's built-in mic). Unfortunately, Wine does not always use my integrated sound device for some reason. So, instead it will do one of two things: go to the headset or the webcam. Going to the webcam is an auto-fail, and if it goes to the headset it prevents me from using Skype. Or, if skype is already running, I get no sound in Wine apps.
The problem is also unusual because of how the game, Elder Scrolls IV: Oblivion, behaves. It will use the normal audio on the game's launch window, but switches to one of the other devices when the game itself starts. Is there any command-line option, environment variable, or registry key I can use to force wine to always use a specific sound device or mixer?
Forcing Wine To Use Audio Device/Mixer
Re: Forcing Wine To Use Audio Device/Mixer
Sounds kind of strange. Are you using ALSA sound and you have a working dmix?Falcata wrote:The problem is also unusual because of how the game, Elder Scrolls IV: Oblivion, behaves. It will use the normal audio on the game's launch window, but switches to one of the other devices when the game itself starts. Is there any command-line option, environment variable, or registry key I can use to force wine to always use a specific sound device or mixer?
You can force Wine to use particular sound card / channel of ALSA: http://wiki.winehq.org/UsefulRegistryKeys
Running winecfg from command line gives me this bit of information:
Also, here's my /proc/asound/cards file:
Code: Select all
fixme:wave:ALSA_ComputeCaps Device has a minimum of 2 channels
fixme:wave:ALSA_ComputeCaps Device has a minimum of 2 channels
fixme:wave:ALSA_ComputeCaps Device has a minimum of 2 channels
err:alsa:ALSA_CheckSetVolume Could not find 'PCM Playback Volume' element
fixme:mixer:ALSA_MixerInit No master control found on USB Device 0x46d:0x9a1, disabling mixer
fixme:mixer:ALSA_MixerInit No master control found on C-Media USB Headphone Set , disabling mixer
Code: Select all
0 [SB ]: HDA-Intel - HDA ATI SB
HDA ATI SB at 0xf9ff4000 irq 16
1 [U0x46d0x9a1 ]: USB-Audio - USB Device 0x46d:0x9a1
USB Device 0x46d:0x9a1 at usb-0000:00:12.2-1, high speed
2 [default ]: USB-Audio - C-Media USB Headphone Set
C-Media USB Headphone Set at usb-0000:00:13.0-3, full speed
And here's my aplay -l:
Code: Select all
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC662 Analog [ALC662 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC662 Digital [ALC662 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: default [C-Media USB Headphone Set ], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0