replace other classes

now all sfxFileStreams create a libsndfile stream class.

At the moment we only read as short
This commit is contained in:
marauder2k7 2024-03-24 12:06:03 +00:00
parent 147044796b
commit 0342eb6f31
9 changed files with 23 additions and 865 deletions

View file

@ -43,12 +43,7 @@
#include "core/util/autoPtr.h"
#include "core/module.h"
#include "sfx/media/sfxWavStream.h"
#ifdef TORQUE_OGGVORBIS
#include "sfx/media/sfxVorbisStream.h"
#endif
#include "sfx/media/sfxSndStream.h"
MODULE_BEGIN( SFX )
@ -352,13 +347,6 @@ void SFXSystem::init()
AssertWarn( smSingleton == NULL, "SFX has already been initialized!" );
SFXProvider::initializeAllProviders();
// Register the streams and resources. Note that
// the order here does matter!
SFXFileStream::registerExtension( ".wav", ( SFXFILESTREAM_CREATE_FN ) SFXWavStream::create );
#ifdef TORQUE_OGGVORBIS
SFXFileStream::registerExtension( ".ogg", ( SFXFILESTREAM_CREATE_FN ) SFXSndStream::create );
#endif
// Create the stream thread pool.
@ -378,11 +366,6 @@ void SFXSystem::destroy()
{
AssertWarn( smSingleton != NULL, "SFX has not been initialized!" );
SFXFileStream::unregisterExtension( ".wav" );
#ifdef TORQUE_OGGVORBIS
SFXFileStream::unregisterExtension( ".ogg" );
#endif
delete smSingleton;
smSingleton = NULL;