mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +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
|
|
@ -44,12 +44,6 @@ typedef SFXFileStream* ( *SFXFILESTREAM_CREATE_FN )( Stream *stream );
|
|||
class SFXFileStream : public SFXStream
|
||||
{
|
||||
protected:
|
||||
typedef Vector< String > ExtensionsVector;
|
||||
typedef Vector< SFXFILESTREAM_CREATE_FN > CreateFnsVector;
|
||||
|
||||
static ExtensionsVector smExtensions;
|
||||
static CreateFnsVector smCreateFns;
|
||||
|
||||
/// The file stream we're reading from.
|
||||
Stream *mStream;
|
||||
|
||||
|
|
@ -78,13 +72,6 @@ class SFXFileStream : public SFXStream
|
|||
virtual void _close() = 0;
|
||||
|
||||
public:
|
||||
|
||||
///
|
||||
static void registerExtension( String ext, SFXFILESTREAM_CREATE_FN create_fn );
|
||||
|
||||
///
|
||||
static void unregisterExtension( String ext );
|
||||
|
||||
/// This is a helper function used to create an appropriate SFXStream
|
||||
/// for the requested sound file.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue