[Linux] The microphone still doesn't work in game
Following what @davidw-valve said in #19, for me, the microphone still doesn't work in game.
Machine details: https://gist.github.com/yoyosan/5994816
Same problem here. Arch Linux x64 on Pulseaudio. I'm in Windows right now but I'll post a Steam information specs chart later.
My mic is working (on MOST servers) but other players say it is terribly distorted. It sounds fine in steam, and overlay mic setup, but "crunchy, choppy" in-game. Works fine in TF2, L4D2, etc. Sounds crisp and clear in ANY other app but cs:go.
I wish I could troubleshoot more, but this seems to be a codec issue.
I am using ALSA only, no pulseaudio. Switching between Mic and Default have no effect.
Latest Ubuntu x64 with 32bit libs installed.
(yes tried voice_loopback)
The system specs show virtually nothing of audio settings, so I will omit them. Ask for any info you may need.
Not really helpful, but to establish my equipment, nor understanding is the issue, I currently use: Audio Spectrum OSM800 Studio Condenser Microphone (phantom powered) Presounus Preamp (low gain) DBX 166XL Compressor/Limiter/Gate (1 comp channel, one noisegate) RANE ME-15 Stereo 15-band EQ (setup for neutral response) Tascam 234 (Mixdown and final gain stage) Realtek ALC887-VD (for gaming, Mono signal split to stereo into Line-in) Balanced connections throughout signal chain until last hop to the realtek (XLR, 1/4" TRS)
There is no reason my setup should sound less than stellar, as it does everywhere else. I routinely do voice-overs, broadcasts, and small studio sessions with this exact setup.
Edit: ( I should note, afaik, csgo uses 2 differing codecs: Miles and Speex. Miles is legacy, Speex is the newer more efficient codec. But while more advanced, there seem to be more common issues with Speex than the older, lower quality and higher bandwidth utilizing Miles codec. Perhaps the linux implementation varies slightly, but I see some similar issues from XP users too, as I think XP limits codec options in some cases. Take this with a grain of salt, this is mostly speculation, but may help advance understanding of the issue. The server sets which codec it is using with sv_voicecodec voice_miles or sv_voicecodec voice_speex, as well as setting the overall quality with sv_voicequality. The client cannot request an appropriate codec.)
-Flax
I can confirm that my microphone is working while doing a self test, but other players say it is terribly distorted, as T3nPoundsOfFlax already wrote.
System Info: http://pastebin.com/sp09byt0
Update: It seems it is taking the levels insanely hot, as compared to other programs.
I adjusted my input until it was roughly 12% (100% is USUALLY -0db in my setup). Mic was much clearer, but it was barely audible in any other app, Steam settings, or using the soundcards loobback.
edit: To clarify, I am using a line-in as my mic input at line-level. A microphone input is rarely best at 100% gain. Your setup and soundcards particular methods of may vary.
So maybe it's some sort of gain boost or normalization issue? Check it out and see if it helps. I can communicate in MOST servers without issue now, but the bug is clearly still present.
Also: Thank you devs. I see you guys taking a lot of shit on reddit lately, and it is undeserved. While some better communication may help, I think most of us know you guys bust your ass. Just keeping the cheaters to a minimum is a immense undertaking, and now linux release? Not to mention as a former sysadmin/eng, I can only imagine the backend issues with ddos's becoming more common, bash bugs, and actual hackers. You guys are awesome.
@T3nPoundsOfFlax I don't get any device at all in pavucontrol's Recording tab.
Pavucontrol is only for pulseaudio. Try using qasmixer (gui), or alsamixer (command line, use -c 1 if your card isn't defined as default) if you don't use pulse. I use only alsa, and these do the trick.
Found out the issue. The voice chat is listening but it isn't using the right input. I have 2 soundcards and 3 inputs. People can hear static so it's listening to something. It doesn't show up on pavucontrol though for recording and I do use pulse. Steam voice chat shows up on pavucontrol though and works fine. I think it's listening straight from ALSA and apparently not using Pulse.
I had problem that the game listens wrong input and I'm using pulseaudio. Here is how to fix it: Start game and go play e.g. with bots. Open developer console and write +voicerecord (command for start sending ingamevoice) Go to desktop and open pavucontrol Open recording tab and change input to right one Go back in game and stop sending ingamevoice with command -voicerecord
Protip: It doesn't show in pavucontrol if the game is not sending your voice. Hope this help if someone has same problem. Sry for poor english, not my native language.
@T3nPoundsOfFlax I don't use alsa, just Pulseaudio.
@yoyosan does it show in pavucontrol Recording tab if you use that +voicerecord what I mentioned above?
@Jarno420 I'll check when I get home.
Ok, it works fine now. Thank you @Jarno420.
The problem was that I had voice_enable 0 in the game and that's why I didn't see any input stream in pavucontrol.
So, it could be that the game just takes wrong audiosource for ingame voice. I'm using soundcard integrated to motherboard as my main output/input, I also have HDMI as my second audio output. Without any changes in game options, game tried to use "Monitor of Build-in Audio Analog Stereo" as input, which is output on my soundcard integrated to motherboard. For my build, "Build-in Audio Analog Stereo" is correct one for use in-game voice input because thats output of soundcard integrated to motherboard.
I fixed this for me already, but it would be nice if devs could fix this.
This issue shouldn't be closed, a workaround is not a fix.
@EliteTK As far as I understand, there is no bug in CS:GO because it doesn't decide which audio source to use - pulse audio decides it by it's own. The only thing that I dislike is that, AFAIK, csgo_linux and dota_linux (can't say anything about other Valve games) appear same for pulseaudio, so if I change some pulseaudio settings for one of these, settings for both are changed.
Ridiculous. It's a bug because an application in 2014 should be pulse-aware and allow you to pick the proper input. I have it set properly as default in pavucontrol and in Gnome's settings and CS:GO doesn't listen.
On top of that, CS:GO links to the the Steam settings in the overlay where it blatantly says "Pulse Audio Default" or something similar, and changing it there doesn't affect CS:GO.
And even if you didn't consider any of the above to be a 'bug', this still doesn't fit expected behavior as this isn't how CS:S, DOTA2 or TF2 behave.
Guys, you need to use pavucontrol to select which audio stream is used for an application.
It's really simple and once you set it, it will be permanent. In Windows, you have pretty much the same thing, when you have multiple sound cards.
The problem with the above is that I have set my pulse audio default and the game didn't follow it. It chose the onboard card when my Pulse default device is my sound card's headphone input. I was able to fix this with pavucontrol using the +voicerecord from Jarno420's above post to keep it listening, but this is a workaround, not a fix.
Luckily, Pulse is smart enough to save that setting permanently for the application so I probably won't have the issue again until I try it on another machine.
I'm having the same issue ... I'm running on Debian Jessie with Geforce GT 740, privative graphics drivers and Realtek audio card... CSGO doesn't appear in pavucontrol either...
Oh! ... perfect, ... I didn't see the solution, i'll go to try it ... xD
https://github.com/ValveSoftware/Counter-Strike-Global-Offensive/issues/97#issuecomment-57481983
Nothing... Still doesn't works... :( CSGO doesn't show at pavucontrol :(
@WyRe So you tried to +voicerecord and voice_enable 1 and still no CSGO in pavucontrol? Is there anykind of audio releated errors if you try starting stream from terminal and then run CSGO?
@Jarno420 Mic works inside server game but it doesn't showing in pavucontrol recording apps table.. only at reproduction table, so I can't adjust capture volume... and... i'm not sure if mic works inside lobby room .. i think either ...