music/sound problem in Q3A and how to solve it
music/sound problem in Q3A and how to solve it
I tried implementing custom music for one of my maps, just as I've successfully done it many times before, but this time the track didn't initiated when I loaded the map inside Q3A and the console gave me the following information: "no data chunk in [nameofmusicfile].wav". It isn't specified as an error message and I can still play other tracks with "/music music/[nameofmusicfile]" as usual.
The problematic track is a normal 22Khz stereo 16 bit .wav-file having approximately 15 MBs.
So why won't Q3A play that thing? Hope it's not because of the track lenght...
The problematic track is a normal 22Khz stereo 16 bit .wav-file having approximately 15 MBs.
So why won't Q3A play that thing? Hope it's not because of the track lenght...
Last edited by monaster on Sun Apr 19, 2009 12:30 pm, edited 1 time in total.
If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
-Lee Trevino, golfer who actually has been struck by lightning.
Re: music/sound problem in Q3A
It needs to be PCM, open it up in windows sound editor and save it with the correct settings.
Re: music/sound problem in Q3A
The problem is, that it already is PCM formatted - I forgot to mention that, sorry, Kaz! At first, it was an audio soundtrack I splitted from a .wmv and then saved as mp3 before finally converting it to the spoken of wav. Could it be that the 15MBs are just too big for Quake3 to handle? I'm completely stuck with that problem... 
[EDIT: spelling mistake corrected]

[EDIT: spelling mistake corrected]
If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
-Lee Trevino, golfer who actually has been struck by lightning.
Re: music/sound problem in Q3A
I doubt it's "too big" but try saving a copy of it cropped to something short and see if that works.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: music/sound problem in Q3A
If it were too big Q3A would complain with an 'Out of memory' error. You said it's a 22kHz with 16 bits per sample. Did you save it as little-endian PCM?
Re: music/sound problem in Q3A
I finally managed to figure out what the problem was:
A nice little programme to fix the issue is available under THISlink. There you'll also find the explanation I've posted here. I tested that thing and it works perfectly (~6kb of size if I remeber correctly), I can finally play the music I wanted!The quake 3 wav loader seems to be a bit limited in the data it can handle. Instead of searching through chunks based on the lengths in the file, it just looks at every 4 bytes in turn looking for the chunk headers. This doesnt work if a chunk before the DATA chunk is not a multiple of 4 bytes long - for example the fmt chunk on newer WAV files. When loading music it seems even more restricted, in that it appears to assume the DATA chunk will immediately follow the fmt chunk.
This causes quake3 to report "No data chunk in <filename>" on the console when it tries to load the wav file.
If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
-Lee Trevino, golfer who actually has been struck by lightning.
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: music/sound problem in Q3A
That's a bug worth fixing. Do you happen to have a sound sample that exposes it?
Re: music/sound problem in Q3A
@^misantropia^:
Unfortunately, I've deleted every 'bugged' music file afterwards, but I can try to create something like that using the same procedure again. Interested?
Unfortunately, I've deleted every 'bugged' music file afterwards, but I can try to create something like that using the same procedure again. Interested?
If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
-Lee Trevino, golfer who actually has been struck by lightning.
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: music/sound problem in Q3A
I am and thanks in advance.
Re: music/sound problem in Q3A
Well, I first have to find a new webspace where I can upload that music track, sorry for having you wait so long.
I'll inform you as soon as I can upload it again (I have in fact had it uploaded already but forgot to mention it here too, embarrassing... and now that I have thought of it again lycos closes and forced me to remove everything..., sorry, ^misantropia^).
By the way: screenshots I may have posted in this forum in the past were also lying on my tripod account, they'll be gone as well; at least for some time...

I'll inform you as soon as I can upload it again (I have in fact had it uploaded already but forgot to mention it here too, embarrassing... and now that I have thought of it again lycos closes and forced me to remove everything..., sorry, ^misantropia^).
By the way: screenshots I may have posted in this forum in the past were also lying on my tripod account, they'll be gone as well; at least for some time...
If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
-Lee Trevino, golfer who actually has been struck by lightning.
Re: music/sound problem in Q3A
Mail me the wav and I'll host it for you?
Q3Map2 2516 -> http://www.zfight.com/misc/files/q3/q3map_2.5.16_win32_x86.zip
Q3Map2 FS_20g -> http://www.zfight.com/misc/files/q3/q3map2_fs_20g.rar
GtkRadiant 140 -> http://www.zfight.com/misc/files/q3/GtkRadiantSetup-1.4.0-Q3RTCWET.exe
Q3Map2 FS_20g -> http://www.zfight.com/misc/files/q3/q3map2_fs_20g.rar
GtkRadiant 140 -> http://www.zfight.com/misc/files/q3/GtkRadiantSetup-1.4.0-Q3RTCWET.exe
Re: music/sound problem in Q3A
Thanks, Hipshot, just found out that lycos continues anyway...

I'll re-upload all the stuff in the next few days and then it is available again.
If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
-Lee Trevino, golfer who actually has been struck by lightning.
Re: music/sound problem in Q3A
Finally I was able to upload an example of a buggy music file that will produce a "no data chunk in [nameofmusicfile].wav" error inside Quake 3, hell yeah! Here you go, ^misantropia^, have fun with it studying that bug... if you're still interested in it after such a long time
The URL to get it from is this one . Tell me when you downloaded that thing, I'll delete it afterwards.
[EDIT: Quickly changed the link, it works now.
EDIT2: It doesn't due to some lycos restrictions, it doesn't pose too much of a problem though: just type the linked address into your browser and the download window shows up.]

The URL to get it from is this one . Tell me when you downloaded that thing, I'll delete it afterwards.
[EDIT: Quickly changed the link, it works now.
EDIT2: It doesn't due to some lycos restrictions, it doesn't pose too much of a problem though: just type the linked address into your browser and the download window shows up.]
If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
-Lee Trevino, golfer who actually has been struck by lightning.
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: music/sound problem in Q3A
Thanks. Downloaded it and going to check it out.
Re: music/sound problem in Q3A and how to solve it
You're welcome. To obsidian & Co: I changed the topic subject and the post icon so that everybody knows that the problem has been solved. Hope this goes ok with any q3w rules, since I never did this before (I mean changing subjects, not solving problems
).

If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
-Lee Trevino, golfer who actually has been struck by lightning.
Re: music/sound problem in Q3A and how to solve it
That's cool. Thanks for taking the initiative.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Re: music/sound problem in Q3A and how to solve it
Thanks for following through with it too. 
It makes me crazy when someone posts about a problem, and then posts "Nevermind, figured it out." and never posts again. That helps no one who has the same problem...

It makes me crazy when someone posts about a problem, and then posts "Nevermind, figured it out." and never posts again. That helps no one who has the same problem...
