FIFE
2008.0
|
#include <soundclip.h>
Inherits FIFE::IResource.
Public Member Functions | |
bool | isStream () const |
uint32_t | countBuffers () const |
ALuint * | getBuffers (uint32_t streamid=0) const |
uint32_t | beginStreaming () |
void | acquireStream (uint32_t streamid) |
bool | setStreamPos (uint32_t streamid, SoundPositionType type, float value) |
float | getStreamPos (uint32_t streamid, SoundPositionType type) const |
bool | getStream (uint32_t streamid, ALuint buffer) |
void | quitStreaming (uint32_t streamid) |
void | adobtDecoder (SoundDecoder *decoder) |
void | setDecoder (SoundDecoder *decoder) |
SoundDecoder * | getDecoder () const |
Class to handle the buffers of an audio file
Definition at line 58 of file soundclip.h.
void FIFE::SoundClip::acquireStream | ( | uint32_t | streamid) |
Fills the streaming-buffers with initial data
streamid | The stream ID |
Definition at line 187 of file soundclip.cpp.
References getStream().
Referenced by FIFE::SoundEmitter::setCursor().
|
inline |
Adopts a decoder to use so DONT delete it
Definition at line 123 of file soundclip.h.
uint32_t FIFE::SoundClip::beginStreaming | ( | ) |
Starts streaming the soundclip
Definition at line 136 of file soundclip.cpp.
|
inline |
Returns the number of buffers used by the SoundClip (only for non-streaming sound clips)
Definition at line 79 of file soundclip.h.
|
inline |
Returns the array of buffers for queuing
Definition at line 86 of file soundclip.h.
Referenced by FIFE::SoundEmitter::setCursor().
|
inline |
Returns the attached decoder
Definition at line 131 of file soundclip.h.
Referenced by FIFE::SoundEmitter::getBitResolution(), FIFE::SoundEmitter::getDecodedLength(), FIFE::SoundEmitter::getSampleRate(), and FIFE::SoundEmitter::isStereo().
bool FIFE::SoundClip::getStream | ( | uint32_t | streamid, |
ALuint | buffer | ||
) |
Refill a processed buffer with new data
streamid | The stream ID |
Definition at line 196 of file soundclip.cpp.
Referenced by acquireStream().
float FIFE::SoundClip::getStreamPos | ( | uint32_t | streamid, |
SoundPositionType | type | ||
) | const |
Gets the stream position
Definition at line 174 of file soundclip.cpp.
Referenced by FIFE::SoundEmitter::getCursor().
|
inline |
Does this SoundClip require a streaming mechanism?
Definition at line 70 of file soundclip.h.
Referenced by FIFE::SoundEmitter::getCursor(), FIFE::SoundEmitter::play(), FIFE::SoundEmitter::reset(), FIFE::SoundEmitter::setCursor(), FIFE::SoundEmitter::setLooping(), and FIFE::SoundEmitter::stop().
void FIFE::SoundClip::quitStreaming | ( | uint32_t | streamid) |
Quits Streaming
Definition at line 227 of file soundclip.cpp.
Referenced by FIFE::SoundEmitter::reset().
|
inline |
Sets the decoder to use so DONT delete it before this SoundClip is done with it
Definition at line 127 of file soundclip.h.
bool FIFE::SoundClip::setStreamPos | ( | uint32_t | streamid, |
SoundPositionType | type, | ||
float | value | ||
) |
Sets the stream position
Definition at line 149 of file soundclip.cpp.
Referenced by FIFE::SoundEmitter::setCursor().