mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
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:
parent
3889798818
commit
3652367b36
3 changed files with 282 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue