Question about custom sound
Moderator: Moderators
Question about custom sound
I followed the tutorial by jv_map using the workaround and it works fine. I was just wondering if it was possible to use a path name that points to a sound file within the map's .pk3 instead of having to put it in the mohaa sound dir.
wav
Wav file or Mp3? Wav files can be in your pk3 in the sound/whatever folder. But, mp3 music files are not in main, so you can't add them to a pk3. You would have to distribute a sound folder along with your pk3.
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
Re: wav
Is that right I neevr knew, I had a mp3 of music in my monastery map, it worked well at home here but I must admit I never used it on a server. I might better look into that.tltrude wrote:Wav file or Mp3? Wav files can be in your pk3 in the sound/whatever folder. But, mp3 music files are not in main, so you can't add them to a pk3. You would have to distribute a sound folder along with your pk3.
Thanks
Opps
Wait, the mp3's are in main/sound/music, so I guess you could put them in your pk3. But, it would sure make the pk3 larger, and most people turn the music off anyway.
I can get it to work with the mp3 in the main/sound/amb dir with:
I can get it to work with the wav in the main/sound/amb dir with:
but i cannot get it to work at all if i have either sound format in my pk3 sound dir
.
Not sure what I am doing wrong, but i am sure that i need help
.
Code: Select all
local.master aliascache piano sound/amb/pianoman.mp3 soundparms 1.0 1.0 1.0 0.0 200 500 auto loaded maps "obj dm"Code: Select all
local.master aliascache piano sound/amb/pianoman.wav soundparms 1.0 1.0 1.0 0.0 200 500 auto streamed maps "obj dm"Not sure what I am doing wrong, but i am sure that i need help
check what codec the wav file is useing . The sound will need to be in pcm format to use in a pak . You can open the sound with windows sound recorder and then use save as . Then change the codec format to pcm I am not sure what sample rates or bit rates work but you can test them and see . I made a map with PCM 22.050 kHz, 8 Bit, Mono that worked .
It seems as though i had to change the wav file to 22.020 kHz for it to work in the pk3. Today, for some reason, i got the mp3 to work also. I did change the sound source from a script_model to a sound_speaker. Not sure if that makes a difference. Thx to all for the help. Still wondering if its possible to have the sound be dampened by walls.
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:


