20 #ifndef SOUND_STREAMINGSOUND_H
21 #define SOUND_STREAMINGSOUND_H
23 #include <boost/scoped_ptr.hpp>
25 #include <boost/cstdint.hpp>
34 class StreamingSoundData;
62 virtual bool eof()
const;
79 virtual bool moreData();
82 virtual bool decodingCompleted()
const {
83 return _positionInBlock == 0 &&
90 void decodeNextBlock();
96 size_t _positionInBlock;
103 StreamingSoundData& _soundDef;
~StreamingSound()
Unregister self from the associated StreamingSoundData.
Definition: StreamingSound.cpp:122
Instance of a defined sound (LiveSoundData)
Definition: LiveSound.h:46
Definition of an embedded sound.
Definition: StreamingSoundData.h:48
StreamingSound(StreamingSoundData &def, media::MediaHandler &mh, sound_handler::StreamBlockId blockId)
Create an embedded sound instance.
Definition: StreamingSound.cpp:51
size_t blockCount() const
Definition: StreamingSoundData.h:91
unsigned long StreamBlockId
Identifier of a streaming sound block.
Definition: sound_handler.h:97
virtual bool eof() const
True if there is no more data ever.
Definition: StreamingSound.cpp:116
size_t currentBlock() const
Definition: StreamingSound.h:69
Instance of a defined sound (StreamingSoundData)
Definition: StreamingSound.h:48