mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
replace other classes
now all sfxFileStreams create a libsndfile stream class. At the moment we only read as short
This commit is contained in:
parent
147044796b
commit
0342eb6f31
9 changed files with 23 additions and 865 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue