Gnash
0.8.11dev
|
Instance of a defined sound (EmbedSound) More...
#include <EmbedSoundInst.h>
Public Member Functions | |
EmbedSoundInst (EmbedSound &def, media::MediaHandler &mh, unsigned int inPoint, unsigned int outPoint, const SoundEnvelopes *envelopes, int loopCount) | |
Create an embedded sound instance. | |
virtual bool | eof () const |
True if there is no more data ever. | |
virtual | ~EmbedSoundInst () |
Unregister self from the associated EmbedSound. |
Additional Inherited Members | |
![]() | |
LiveSound (media::MediaHandler &mh, const media::SoundInfo &info, size_t inPoint) | |
Create an embedded sound instance. | |
const boost::int16_t * | getDecodedData (unsigned long int pos) const |
virtual bool | moreData ()=0 |
Called when more decoded sound data is required. | |
void | restart () |
Start from the beginning again. | |
unsigned int | samplesFetched () const |
How many samples have been fetched since the beginning. | |
size_t | playbackPosition () const |
media::AudioDecoder & | decoder () const |
void | appendDecodedData (boost::uint8_t *data, unsigned int size) |
unsigned int | decodedSamplesAhead () const |
Instance of a defined sound (EmbedSound)
gnash::sound::EmbedSoundInst::EmbedSoundInst | ( | EmbedSound & | def, |
media::MediaHandler & | mh, | ||
unsigned int | inPoint, | ||
unsigned int | outPoint, | ||
const SoundEnvelopes * | envelopes, | ||
int | loopCount | ||
) |
Create an embedded sound instance.
def | The definition of this sound (the immutable data) |
mh | The MediaHandler to use for on-demand decoding |
inPoint | Offset in output samples this instance should start playing from. These are post-resampling samples (44100 for one second of samples). |
outPoint | Offset in output samples this instance should stop playing at. These are post-resampling samples (44100 for one second of samples). Use numeric_limits<unsigned int>::max() for never |
envelopes | SoundEnvelopes to apply to this sound. May be 0 for none. |
loopCount | Number of times this instance should loop over the defined sound. Note that every loop begins and ends at the range given by inPoint and outPoint. |
|
virtual |
Unregister self from the associated EmbedSound.
WARNING: must be thread-safe!
References gnash::sound::EmbedSound::eraseActiveSound().
|
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().