sfxSndStream

read an ogg file through libsndfile instead of libvorbis.

There are still issues with this part of the file opens but doesn't read the whole file for some reason
This commit is contained in:
marauder2k7 2024-03-23 20:17:18 +00:00
parent 3889798818
commit 3652367b36
3 changed files with 282 additions and 1 deletions

View file

@ -48,6 +48,8 @@
#include "sfx/media/sfxVorbisStream.h"
#endif
#include "sfx/media/sfxSndStream.h"
MODULE_BEGIN( SFX )
@ -355,7 +357,7 @@ void SFXSystem::init()
// the order here does matter!
SFXFileStream::registerExtension( ".wav", ( SFXFILESTREAM_CREATE_FN ) SFXWavStream::create );
#ifdef TORQUE_OGGVORBIS
SFXFileStream::registerExtension( ".ogg", ( SFXFILESTREAM_CREATE_FN ) SFXVorbisStream::create );
SFXFileStream::registerExtension( ".ogg", ( SFXFILESTREAM_CREATE_FN ) SFXSndStream::create );
#endif
// Create the stream thread pool.