32 #include "audio/soundclip.h"
34 #include "util/log/logger.h"
35 #include "util/base/exception.h"
37 #include "ogg_loader.h"
38 #include "sounddecoder_ogg.h"
41 static Logger _log(LM_NATIVE_LOADERS);
43 void OggLoader::load(IResource* res) {
44 VFS* vfs = VFS::instance();
46 std::string filename = res->getName();
48 RawData* rdptr = vfs->open(filename);
49 dynamic_cast<SoundClip*
>(res)->adobtDecoder(
new SoundDecoderOgg(rdptr));
credit to phoku for his NodeDisplay example which the visitor code is adapted from ( he coded the qua...