|
Gnash
0.8.10
|
Instance of a defined sound (StreamingSoundData) More...
#include <StreamingSound.h>
Public Member Functions | |
| StreamingSound (StreamingSoundData &def, media::MediaHandler &mh, sound_handler::StreamBlockId blockId) | |
| Create an embedded sound instance. | |
| virtual bool | eof () const |
| True if there is no more data ever. | |
| ~StreamingSound () | |
| Unregister self from the associated StreamingSoundData. | |
| size_t | currentBlock () const |
Instance of a defined sound (StreamingSoundData)
This class contains a pointer to the StreamingSoundData used for playing and a SimpleBuffer to use when decoding is needed.
| gnash::sound::StreamingSound::StreamingSound | ( | StreamingSoundData & | def, |
| media::MediaHandler & | mh, | ||
| sound_handler::StreamBlockId | blockId | ||
| ) |
Create an embedded sound instance.
| def | The sound data for this sound |
| mh | The MediaHandler to use for on-demand decoding |
| blockId | Identifier of the encoded block to start decoding from. |
Unregister self from the associated StreamingSoundData.
WARNING: must be thread-safe!
References gnash::sound::StreamingSoundData::eraseActiveSound().
| size_t gnash::sound::StreamingSound::currentBlock | ( | ) | const [inline] |
| bool gnash::sound::StreamingSound::eof | ( | ) | const [virtual] |
True if there is no more data ever.
The InputStream will be disconnected when this is true.
Implements gnash::sound::LiveSound.
References gnash::sound::LiveSound::decodedSamplesAhead().
1.7.6.1