music issue Created 7 years ago2016-09-18 22:57:17 UTC by platoon platoon

Created 7 years ago2016-09-18 22:57:17 UTC by platoon platoon

Posted 7 years ago2016-09-18 22:57:39 UTC Post #331722
game doesn't play any mp3 tracks when I change the game folder location to somewhere else or I'm not sure the real reason why,

media folder with music files is in valve folder
MP3Volume "0.8" default
bgmvolume "1" default

in game console message appeirs:
warning: MP3_InitStream(10, media\Half-Life02.mp3) failed
(changed this to any other track none of them works)

is there any registry info to correct the mp3 file location or something?
Posted 7 years ago2016-09-19 06:31:58 UTC Post #331724
Define how exactly you're trying to play the music...

That aside did you make modifications to the mp3 music? While I'm not sure it would make any difference perhaps that's why.

my mp3 in hl have the following setup:

44100hz, 192kbps, stereo
Posted 7 years ago2016-09-19 09:52:11 UTC Post #331725
No modifications just vanilla files, musics doesn't play both my new maps and old maps or halflife vanilla maps.. also tried console command
"cd loop #(track)" or "mp3 loop #(track)"
All of them give same error with "developer 1" turned on in console
I suspect it something to do with file path location for game
I have this issue very long time and mentioned it few times in this forums but no solutions..
Posted 7 years ago2016-09-19 15:16:58 UTC Post #331727
Have you tried to put those tracks in "valve" (replace original HL tracks with same names) and check if they work at all or not? As I know, game can refuse to play MP3s with specific IDv2 tags (for example, tracks with integrated pictures and so on).
Posted 7 years ago2016-09-19 15:23:50 UTC Post #331728
Another possibly make a steam integrity check. I had to do that recently myself as my weapon selection was for some reason bugged either due to a steam patch or me overwriting some file. I had 10 weapon slots in hl1 instead of 5.

The check is a good fast way to restore files back to their original state if the checksum differs from the current up to date file. Might be a corrupted dll. or missing dll.
Posted 7 years ago2016-09-19 17:04:55 UTC Post #331729
Sounds to me like you used the wrong codec.

If you have VLC, play your music, right-click on it in the playlist, "Information about media" and in the "Codec" section you should have something similar to this:

Type: Audio
Codec: MPEG Audio layer 1/2 (mpga)
Channels: Stereo
Sample rate: 48000 Hz
Bitrate: 320 kbit/s

In all mods I worked on, their "gamestartup" is exactly like above. If you don't have something similar to above, then blame your audio software and/or the codec. I recommend GoldWave to work with sounds.
Posted 7 years ago2016-09-19 18:33:06 UTC Post #331731
after many trial and error finally found the problem,
downloaded other game setups on web
replaced every little file and folder one by one
and found out game cannot process those mp3 files;

not working default mp3 file properties:

channels: Stereo
sample rate: 44100 Hz
bitrate: 128 kb/s

working mp3 properties:

channels: Stereo
sample rate: 22050 Hz
bitrate: 48 kb/s

so its a little bit weird but I'm trying to make a stand alone version of the game so every one can play my mod (without halflife map content)
finally everything is in the order now..
You must be logged in to post a response.