22 #ifndef FIFE_SOUNDCLIP_H_
23 #define FIFE_SOUNDCLIP_H_
bool getStream(uint32_t streamid, ALuint buffer)
Refill a processed buffer with new data.
SharedPtr< SoundClip > SoundClipPtr
ALuint buffers[BUFFER_NUM]
bool isStream() const
Does this SoundClip require a streaming mechanism?
void adobtDecoder(SoundDecoder *decoder)
Adopts a decoder to use so DONT delete it.
void acquireStream(uint32_t streamid)
Fills the streaming-buffers with initial data.
SoundPositionType
Different types of audio-file positions.
std::string createUniqueClipName()
float getStreamPos(uint32_t streamid, SoundPositionType type) const
Gets the stream position.
SoundDecoder * getDecoder() const
Returns the attached decoder.
std::vector< SoundBufferEntry * > m_buffervec
void setDecoder(SoundDecoder *decoder)
Sets the decoder to use so DONT delete it before this SoundClip is done with it.
void quitStreaming(uint32_t streamid)
Quits Streaming.
ALuint * getBuffers(uint32_t streamid=0) const
Returns the array of buffers for queuing.
SoundClip(IResourceLoader *loader=0)
uint32_t countBuffers() const
Returns the number of buffers used by the SoundClip (only for non-streaming sound clips) ...
bool setStreamPos(uint32_t streamid, SoundPositionType type, float value)
Sets the stream position.
uint32_t beginStreaming()
Starts streaming the soundclip.
Class to handle the buffers of an audio file.