Problem with playback

Help with using HLDJ
Post Reply
User avatar
y0himba
HLDJ Tester
HLDJ Tester
Posts: 13
Joined: Fri Dec 26, 2008 10:49 pm
Location: My desk.
Contact:

Problem with playback

Post by y0himba »

Here is my log. I have HLDJ installed to "D:\games\HLDJ\HLDJ\hldj.exe" . My Steam folder is in "D:\games\steam\". My play key is "F4". Playing Counterstrike: Source.

Upon running it I choose the following .wav to play:

Complete name : D:\games\hldj\HLDJ\Audio\crysomemore.wav
Format : Wave
File size : 174 KiB
Duration : 2s 9ms
Overall bit rate : 708 Kbps
Encoded by : Kelly Thornton
Recorded date : 2007-04-06
Writing application : Sony Sound Forge 8.0

Audio
ID : 0
Format : PCM
Codec ID : 1
Codec ID/Hint : Microsoft
Duration : 2s 9ms
Bit rate : 705.6 Kbps
Channel(s) : 1 channel
Sampling rate : 44.1 KHz
Resolution : 16 bits
Stream size : 173 KiB (100%)

The file played, but in extremely slow speed. So I tested with one I encoded myself:

Complete name : D:\games\hldj\HLDJ\Audio\thank_you_come_again.wav
Format : Wave
File size : 36.1 KiB
Duration : 1s 671ms
Overall bit rate : 177 Kbps
Recorded date : 0

Audio
ID : 0
Format : PCM
Codec ID : 1
Codec ID/Hint : Microsoft
Duration : 1s 671ms
Bit rate : 176.4 Kbps
Channel(s) : 1 channel
Sampling rate : 11.025 KHz
Resolution : 16 bits
Stream size : 36.0 KiB (100%)

Which would not play at all in game. The mic keyed up, but no sound. Also, the mic would not release and I had to press F4 again to stop playback.

For some odd reason HLDJ creates a 'custom' folder in the root of the HLDJ directory instead of 'HLDJ\HLDJ\custom'.
Image

Running Windows 7, log attached. Thanks for letting me test.
Attachments
hldj.log
(19.29 KiB) Downloaded 453 times
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: IE8 Beta bug (or crash in mshtml.dll)

Post by Renegade »

I think I misjudged your problem - this doesn't appear to be the IE8 beta bug (the log appears normal, no crashes), I'll create a new topic for this.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Problem with playback

Post by Renegade »

Okay, can you confirm it works/doesn't with the sample audio files located on the Downloads page? Also try converting your audio files with the HLDJ audio converter (soon to be integrated into HLDJ).

If some files play in-game (even if slowly) it's a good indication the file format is off. If nothing plays at all ever, verify the location of the file "voice_input.wav" by performing a search from your Steam directory (should be one level above the game dir).

edit: just re-read the other topic in Help, y0himba if this is the same problem, pick up from my suggestion on page #2:
http://hldj.org/forums/viewtopic.php?f=5&t=171&start=15
User avatar
y0himba
HLDJ Tester
HLDJ Tester
Posts: 13
Joined: Fri Dec 26, 2008 10:49 pm
Location: My desk.
Contact:

Re: Problem with playback

Post by y0himba »

Ok, the files work now. I used the converter instead of converting them myself. The mic stays keyed up though and I need to press my play key again to unkey it.

Is there a way I can use the converter and batch file for .wav files?

Also, I would like to create a bind that will say "Thank you come again" and play thank_you.wav at the same time, bound to one key in game...
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Problem with playback

Post by Renegade »

[moving this to help in case it might benefit others]

The "sticky" play key is intended behaviour - it works as a toggle on/off (so you won't have to hold it down for those long songs). You can adjust this behaviour to suite your tastes though. For example, this will create a push-to-talk key

Code: Select all

alias +hldj_ptt hldj_playaudio_on
alias -hldj_ptt hldj_playaudio_off
bind <key> hldj_ptt
Where <key> is the key you'll push to start playback and release to stop.

So far the converter is limited to Mp3 files, I'll be adding to it as I go along and hope to get full codec support via FFMpeg.
To create your specific bind you might do something as follows:

Code: Select all

bind <key> "bind = >$\thank_you.wav;hldjsf; sayteam Thank you come again"
WHere <key> represents the key you want to bind, '>' informs HLDJ not to perform a search but to load the exact file supplied, and '$' tells HLDJ the file path starts from the audio directory (in this example we assume the wav is located in the top level of your audio directory)..
Important: if the path contains any spaces, replace them with the "*" character.

Here's a full example:

Code: Select all

bind p "bind = >$\voices\arnold\Hasta*la*vista.wav;hldjsf; sayteam Hasta la vista, baby!"
Post Reply