mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-25 14:25:38 +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
|
|
@ -38,7 +38,7 @@
|
|||
#include "sfx/sfxMemoryStream.h"
|
||||
#include "sfx/sfxSound.h"
|
||||
#ifdef SPLIT_VORBIS
|
||||
#include "sfx/media/sfxVorbisStream.h"
|
||||
#include "sfx/media/sfxSndStream.h"
|
||||
#endif
|
||||
|
||||
#include "core/stream/fileStream.h"
|
||||
|
|
@ -524,7 +524,7 @@ bool TheoraTexture::setFile( const String& filename, SFXDescription* desc )
|
|||
stream = FileStream::createAndOpen( filename, Torque::FS::File::Read );
|
||||
if( stream )
|
||||
{
|
||||
ThreadSafeRef< SFXStream > vorbisStream = SFXVorbisStream::create( stream );
|
||||
ThreadSafeRef< SFXStream > vorbisStream = SFXSndStream::create( stream );
|
||||
if( !vorbisStream )
|
||||
{
|
||||
Con::errorf( "TheoraTexture - could not create Vorbis stream for '%s'", filename.c_str() );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue