Game Development Community

Ogg vorbis : NULL resource create function

by Christopher Beckford · in Torque Game Engine · 01/26/2004 (11:07 pm) · 2 replies

Hi everyone. I've been trying to get Ogg support into TGE and I've followed all the instructions in Kurtis Seebaldt's resource and other forum threads about linking and such, but I still have a problem I can't seem to solve. The compiler does the build fine, with no errors, but then in game as soon as I try to play an ogg file I get an Assertion error from ResManager.cc saying:

"ResourceObject::construct: NULL resource create function."

I've tried using files from realmwars etc which I know work there, but even those wont work. Has anybody had this problem before, or have an idea of what may be causing the error? Thanks for any help you can give.

Chris

#1
01/27/2004 (11:35 am)
In audioFunctions.cc find:
ConsoleFunction(OpenALInitDriver, ...

make sure you have the line:

ResourceManager->registerExtension(".ogg", AudioBuffer::construct);
#2
01/27/2004 (3:44 pm)
Ah that did it! Thanks a lot.