ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.25k stars 175 forks source link

[Audio] Microphone issue with ALSA #3407

Open FreeSlave opened 10 years ago

FreeSlave commented 10 years ago

I have microphone that detected by ALSA as device 0 on the card 0. That's what steam write to terminal, when I try to test microphone first time:

AL lib: pulseaudio.c:612: Context did not connect: Access denied
AL lib: pulseaudio.c:612: Context did not connect: Access denied
AL lib: alsa.c:888: start failed: File descriptor in bad state

But after I call 'arecord' program once, playback and voice chat start to work fine.

arecord -D hw:0,0 -f S16_LE -r 44100 -c 2 -d 5 test.wav

It seems like steam does not initialize something in right way. Or maybe it's just my driver issue, but I did not find anything similar in the Internet.

If it would helpful, there is appropriate info about my system:

X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-4-amd64 i686 Debian
Current Operating System: Linux debian 3.10-3-686-pae #1 SMP Debian 3.10.11-1 (2013-09-10) i686
$ cat /proc/asound/version 
Advanced Linux Sound Architecture Driver Version k3.10-3-686-pae.

And this one from amixer output about mic (the whole listing is too long):

Simple mixer control 'Rear Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [12.00dB] [off]
  Front Right: Playback 31 [100%] [12.00dB] [off]
Simple mixer control 'Rear Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 2 [67%] [20.00dB]
  Front Right: 2 [67%] [20.00dB]

My microphone model is MIC-01A by Genius

Storm-Engineer commented 9 years ago

I seem to have a similar issue. Mic works on the system, I can hear myself from the speakers, but doesn't work in Steam. Interesting part is, it used to work in the past, I used it in Linux-Dota for a long time without a problem.

I get a very similar console output when testing mic:

warning: The VAD has been replaced by a hack pending a complete rewrite
AL lib: pulseaudio.c:612: Context did not connect: Access denied
AL lib: pulseaudio.c:612: Context did not connect: Access denied'

Does VAD stand for something like "Valve Audio Device"? Also, I don't get the third line about file descriptor that you do.

Then I tried to run arecord as you mentioned, but nothing changed.

However if I press "autodetect devices" I get the file descriptor error you did:

PulseAudio connect failed (used only for Mic Volume Control) with error: Access denied
warning: The VAD has been replaced by a hack pending a complete rewrite
AL lib: alsa.c:888: start failed: File descriptor in bad state

I got a new box and installed new system on it but the old one that used to work was the same software wise: Arch Linux 64 bit with KDE. Now I can't communicate bin Dota. :(

Storm-Engineer commented 9 years ago

May be related? https://bbs.archlinux.org/viewtopic.php?pid=1242905

Storm-Engineer commented 9 years ago

Found some similar errors reported here: https://github.com/ValveSoftware/steam-for-linux/issues/1179

There it was suggested to start the game in question without STEAM_Runtime as a workaround. trying that resulted in failure:

$ STEAM_RUNTIME=0 steam steam://rungameid/570
Running Steam on arch  64-bit
STEAM_RUNTIME is disabled by the user
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Gtk-Message: Failed to load module "canberra-gtk-module"
/home/storm/.local/share/Steam/ubuntu12_32/steamwebhelper: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
Installing breakpad exception handler for appid(steam)/version(1416617579)
/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/vgui2/src/../vgui_surfacelib/FontManager.cpp (276) : Assertion Failed: descs.Count() >= 1
Assert( Assertion Failed: descs.Count() >= 1 ):/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/vgui2/src/../vgui_surfacelib/FontManager.cpp:276

Installing breakpad exception handler for appid(steam)/version(1416617579)
Uploading dump (out-of-process) [proxy '']
/tmp/dumps/crash_20141128041416_5.dmp
/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/vgui2/src/../vgui_surfacelib/FontManager.cpp (276) : Assertion Failed: descs.Count() >= 1
/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/vgui2/src/../vgui_surfacelib/FontManager.cpp (276) : Assertion Failed: descs.Count() >= 1
/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/vgui2/src/../vgui_surfacelib/FontManager.cpp (276) : Assertion Failed: descs.Count() >= 1
/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/steamUI/../common/steam/client_api.cpp (322) : Assertion Failed: ClientAPI_InitGlobalInstance: InternalAPI_Init_Internal failed, most likely because you are missing a 32-bit dependency of steamclient.so (the Steam client is a 32-bit app).

/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/steamUI/SteamStartup.cpp (772) : Assertion Failed: ! "There was a problem with your Steam installation.\n" "Please reinstall steam.\n"
[2014-11-28 04:14:06] Startup - updater built Nov 21 2014 16:23:41
[2014-11-28 04:14:06] Verifying installation...
[2014-11-28 04:14:06] Verification complete
[2014-11-28 04:14:17] Shutdown
Storm-Engineer commented 9 years ago

My apologies for bumping this but I want to ask, is there any progress on this? Is anyone looking into it?

This issue is critical because it prevents me from proper teamwork in Dota 2. If I can help in any way, logs, testing something, whatever, let me know and give me instructions.

Storm-Engineer commented 9 years ago

A month passed and still not even a reply?

jimmyleith commented 9 years ago

Pls Gaben