Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <SimpleSound.h>
Public Member Functions | |
virtual | ~SimpleSound () |
VSFileSystem::VSFileType | getType () const |
![]() | |
virtual | ~Sound () |
const std::string & | getName () const throw () |
const Format & | getFormat () const throw () |
bool | isLoaded () const throw () |
bool | isLoading () const throw () |
bool | isStreaming () const throw () |
void | load (bool wait=true) throw (Exception) |
void | unload () throw () |
Protected Member Functions | |
SimpleSound (const std::string &name, VSFileSystem::VSFileType type=VSFileSystem::UnknownFile, bool streaming=false) throw () | |
bool | isStreamLoaded () const |
void | loadStream () throw (Exception) |
void | closeStream () throw (ResourceNotLoadedException) |
SharedPtr< Stream > | getStream () const throw (ResourceNotLoadedException) |
void | readBuffer (SoundBuffer &buffer) throw (Exception) |
virtual void | abortLoad () throw () |
![]() | |
Sound (const std::string &name, bool streaming) throw () | |
Format & | getFormat () throw () |
virtual void | onLoaded (bool success) throw () |
virtual void | waitLoad () throw (Exception) |
virtual void | loadImpl (bool wait)=0 throw (Exception) |
virtual void | unloadImpl ()=0 throw () |
Additional Inherited Members | |
![]() | |
struct Audio::Sound::Flags | flags |
Simple Sound abstract class
Definition at line 35 of file SimpleSound.h.
|
protected |
Internal constructor used by derived classes
Definition at line 13 of file SimpleSound.cpp.
|
virtual |
Definition at line 20 of file SimpleSound.cpp.
|
protectedvirtual |
Abort an in-progress background load procedure
Implements Audio::Sound.
Definition at line 83 of file SimpleSound.cpp.
|
protected |
Uninitialize the stream
Definition at line 42 of file SimpleSound.cpp.
References isStreamLoaded().
|
protected |
Get a pointer to the stream
Definition at line 50 of file SimpleSound.cpp.
References isStreamLoaded().
Referenced by loadStream().
|
inline |
|
inlineprotected |
Do we have an open stream?
Definition at line 57 of file SimpleSound.h.
Referenced by closeStream(), getStream(), and loadStream().
|
protected |
Initialize the stream.
Definition at line 24 of file SimpleSound.cpp.
References Audio::Sound::getFormat(), Audio::Sound::getName(), Singleton< CodecRegistry >::getSingleton(), getStream(), getType(), and isStreamLoaded().
|
protected |
Read from the stream into the buffer
Definition at line 58 of file SimpleSound.cpp.
References buffer.