Seamless Transitions: DJing and Speaking?

Help with using HLDJ
Post Reply
shadowchild98
Game DJ
Posts: 2
Joined: Wed Nov 18, 2009 1:03 am

Seamless Transitions: DJing and Speaking?

Post by shadowchild98 »

Hello, wonderful program you have, works like a charm. The only thing that's boggling me is this:

I can use my capslock key to transmit (+voicerecord) and speak to my team. However, once I play a file via HLDJ I lose the ability to speak to my team. If I hold my capslock key, nothing transmits. I did a search and saw that other people had similar problems and you said that the HLDJ transmit key (which I have bound to F8) is a toggle, so theoretically if I press F8 to transmit the audio file and then press it again, it would toggle it to "off" and I would be able to speak normally to my team using my regular transmit key (capslock) but it seems that is not the case, at least for me. I tried rebinding capslock to +voicerecord in console but it still transmits nothing. Any help would be very appreciated!

Thank you very much for your time =]

EDIT: Sorry, I forgot to mention that this is concerning Counter Strike Source.

UPDATE: The only thing that seems to work is to:
1) Alt-tab
2) Turn OFF HLDJ
3) Go back into game and press F8 twice (to toggle ON and OFF)
4) Capslock now transmits my voice

This is how I assume it's supposed to work, minus the alt-tabbing and turning off of the program. Although this method works, it is a bit of a hassle (as you might imagine), so I'm still hoping for an easier method =]
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Seamless Transitions: DJing and Speaking?

Post by Renegade »

Hi, toggling is the correct action.
Double check you are toggling it on and off correctly (i.e. some people forget to toggle it off when the song ends).

On the off chance something in a script is funky, try binding a key to "hldj_playaudio_on" and one to "hldj_playaudio_off", then use them to turn on and off playback (respectively).

If you take a look at hldj_init.cfg in the game's 'cfg' folder or call "alias" from within console, you'll see the aliases responsible for playing audio, they should look something like this:

Code: Select all

alias hldj_playaudio_on "alias hldj_playaudio hldj_playaudio_off; voice_inputfromfile 1; voice_loopback 1; +voicerecord; hldj_custom_playaudio_on"
alias hldj_playaudio_off "-voicerecord; voice_inputfromfile 0; voice_loopback 0; alias hldj_playaudio hldj_playaudio_on; hldj_custom_playaudio_off"
Theoretically turning off HLDJ should have no effect - the binds and aliases are already loaded at that point. I'm wondering if it isn't instead a microphone issue that is resolved when you alt+tab; does your microphone regularly work okay? Try stopping HLDJ from within the game ("hldj_stop" in console), does it work the same as if you had alt-tabbed and done it?
shadowchild98
Game DJ
Posts: 2
Joined: Wed Nov 18, 2009 1:03 am

Re: Seamless Transitions: DJing and Speaking?

Post by shadowchild98 »

Thank you for replying. Still no dice with toggling, I press F8 and play the audio file in its entirety, press F8 again to toggle it to OFF. Hold capslock, but no transmission of my voice at all (voice_loopback 1). I can still play audio, but I just can't speak.

I also tried the "hldj_playaudio_on" and "hldj_playaudio_off" to F9 and F10 (respectively), but that doesn't seem to be agreeing with me either. My microphone works perfectly until I play an audio file. Then I cannot speak unless I alt-tab and turn off HLDJ. I tried "hldj_stop" also but to no avail, as I could still not transmit after playing audio files.

If there is no immediate solution, it's not a big problem, I can deal with alt-tabbing while dead and turning it off for now =]
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Seamless Transitions: DJing and Speaking?

Post by Renegade »

Try this:
1) copy an audio file to your "steamapps\username\counter-strike source" directory and rename it "voice_input.wav"
2) start a game
3) bind a key to "voice_inputfromfile 1; voice_loopback 1; +voicerecord" and another one to "-voicerecord; voice_inputfromfile 0"
4) hit the first key to start playback (you should hear the audio file playing) and the other to stop it
5) now try using voicecomm, does it work?
6) if not, set "voice_forcemicrecord 1", now?

These steps manually simulate what HLDJ does (more or less) without running it at all. If voicecomm works for you here, then there maybe something in the scripts that I need to take a look at. Otherwise if you encounter the same problem, then it is a mic-setup related issue (may need to go through the voice setup again in the game or your OS; another problem to look out for is that in Vista and higher applications are capable of "stealing" mic input and/or changing it's volume).
Post Reply