Game Development Community

Ogg crashes - FYI

by Jason McIntosh · in Torque Game Builder · 04/15/2005 (2:20 pm) · 5 replies

I learned an interesting lesson today. Some ogg files will cause Torque to completely lock up. As in, no input or anything else whatsoever. Took me a while to track this one down.

I created an 80kbps, variable bitrate, mono ogg file from a wav file and it crashes every single time I try to play it. I converted to the same wav to the same parameters except constant bitrate and it didn't crash. 112kbps, variable, mono also didn't crash. 112kpbs, constant, mono didn't crash. Those are the only combinations I tested.

So be careful with the ogg parameters. Seems like Torque is a little twitchy.

#1
04/15/2005 (2:41 pm)
I'm not down with ogg, yeah you heard me

ok I will just slap myself
#2
04/15/2005 (6:59 pm)
Well, I compressed a 225K wav to a 79K ogg with no audible difference to my ears. Not bad. :) Definitely worth the trouble is size is an issue.
#3
04/16/2005 (1:16 am)
Ogg Vorbis is great. Not only does it have a nice license, there are features which makes it great for games. Such as you can multiplex arbitrary data with the sound. That's been used to put lip-synch data into the sound-file, which can then be extracted and synchronized.
#4
04/16/2005 (2:20 am)
Wow! That's very cool. I didn't know it had room to do that. I bet you could put subtitles in there too. Or loop data! oooo
#5
04/16/2005 (2:36 am)
Hmm. I remember seeing a thread on here that some versions of Ogg encoders cause problems with the Ogg vorbis library, and this makes T2D/TGE crash. That sounds very much in line with that, since changing the encoding settings fixed the crash.