Page 1 of 1

Audio not playing in CSS/When pressing play, I hear me.

Posted: Fri Jul 02, 2010 5:15 am
by Sov
My problem is that my audio isn't playing when I press F1, however when I press F1 I can hear myself talk..

I'm running Win7 64bit, and here is a screenshot of my console:
Image

And here's where my voice_input file is:
Image

Does voice normally work for you? If not, or you do not have a mic, have you remembered to set up any applicable options in your operating system and/or the game?
Yep, works fine.

I have no idea what's wrong here, my best guess is the voice_input is in the wrong folder.
And I know they are converted properly.

Help is much appreciated :-)

EDIT: Not sure if this is part of the problem, but the first image also shows this: "exec hldj_custom.cfg: is over 1 MB!"

Re: Audio not playing in CSS/When pressing play, I hear me.

Posted: Fri Jul 02, 2010 6:17 am
by Renegade
Your voice_input.wav is in the correct place, try opening it and playing it to see if it's what you expect. Also try exiting and re-opening the game and HLDJ in case one or the other is blocking access to a file. The last error you describe would seem to imply that hldj_custom.cfg could not be copied or linked (or it could be empty) and so I'm guessing the same might have happened to voice_input.wav. I'm not sure why that would occur though (if you have a copy of 1.6.0 alpha, there were some fixes, so be sure to grab 1.6.0a3 or later).

Re: Audio not playing in CSS/When pressing play, I hear me.

Posted: Fri Jul 02, 2010 6:57 am
by Sov
Well they're both shortcuts to the actual files, is that normal? And I've already exited + reopened a ton.
The voice_input shortcut file did play the sound "This is Sparta" when opened, so that was okay.

The shortcuts are all 0 KB, which doesnt seem right.

Hmm, here's a picture of EVERYTHING laid out haha:
Image

And thanks very much for the help and swift response :-)

Re: Audio not playing in CSS/When pressing play, I hear me.

Posted: Fri Jul 02, 2010 8:32 am
by Renegade
Yes, on Win7/Vista they will appear as 0-size shortcuts (see the devlog for "symlinks" and more info on why). It seems the hldj_custom.cfg error is just a result of it being empty (i.e. see what happens if you add something to your hldj_custom.cfg).

Since you are able to play the song and the playaudiokey seems to be bound, the problem is likely with conversion (in which case, test the sample audio from the downloads page) or a server or client setting that is preventing it (test on your own server with sv_allow_voice_from_file 1).

Re: Audio not playing in CSS/When pressing play, I hear me.

Posted: Fri Jul 02, 2010 10:30 am
by Sov
Tried it, I don't think that's it... I'm sure there's something silly I must be missing or something.
Oh well, thanks for your help though, I appreciate it :-)

Re: Audio not playing in CSS/When pressing play, I hear me.

Posted: Fri Jul 02, 2010 1:43 pm
by Renegade
The sample audio did not work?
You can remove HLDJ entirely from the process by manually copying one of the sample files to the folder where voice_input.wav appears, then rename it "voice_input.wav". Start a server and run the commands:

Code: Select all

sv_allow_voice_from_file 1; voice_loopback 1; voice_inputfromfile 1; voice_forcemicrecord 0; +voicerecord
If nothing happens even then, it's a game-related problem, and you can use the commands "cvarlist sv_voice" and "cvarlist voice_" to bring up a list of variables that may need adjusting.