Gnash
0.8.11dev
|
#include <SoundInfoRecord.h>
Public Member Functions | |
SoundInfoRecord () | |
Construct a SoundInfoRecord record object. More... | |
void | read (SWFStream &in) |
Public Attributes | |
bool | noMultiple |
bool | hasEnvelope |
bool | hasLoops |
bool | hasOutPoint |
bool | hasInPoint |
int | loopCount |
Number of loops started by an execution of this tag. More... | |
bool | stopPlayback |
If true this tag actually stops the sound rather then playing it. More... | |
unsigned int | inPoint |
In point, 44100 for one second. More... | |
unsigned int | outPoint |
Out point, 44100 for one second. More... | |
sound::SoundEnvelopes | envelopes |
Sound effects (envelopes) for this start of the sound. More... | |
|
inline |
Construct a SoundInfoRecord record object.
This SoundInfoRecord is not valid until read() has been called.
void gnash::SWF::SoundInfoRecord::read | ( | SWFStream & | in | ) |
References gnash::SWFStream::ensureBytes(), envelopes, hasEnvelope, hasInPoint, hasLoops, hasOutPoint, gnash::key::i, IF_VERBOSE_PARSE, inPoint, gnash::log_parse(), loopCount, noMultiple, outPoint, gnash::SWFStream::read_u16(), gnash::SWFStream::read_u32(), gnash::SWFStream::read_u8(), and stopPlayback.
sound::SoundEnvelopes gnash::SWF::SoundInfoRecord::envelopes |
Sound effects (envelopes) for this start of the sound.
See http://sswf.sourceforge.net/SWFalexref.html#swf_envelope
Referenced by gnash::SWF::StartSoundTag::executeActions(), gnash::Button::mouseEvent(), and read().
bool gnash::SWF::SoundInfoRecord::hasEnvelope |
Referenced by read().
bool gnash::SWF::SoundInfoRecord::hasInPoint |
Referenced by read().
bool gnash::SWF::SoundInfoRecord::hasLoops |
Referenced by read().
bool gnash::SWF::SoundInfoRecord::hasOutPoint |
Referenced by read().
unsigned int gnash::SWF::SoundInfoRecord::inPoint |
In point, 44100 for one second.
See http://sswf.sourceforge.net/SWFalexref.html#swf_soundinfo
Referenced by gnash::SWF::StartSoundTag::executeActions(), gnash::Button::mouseEvent(), and read().
int gnash::SWF::SoundInfoRecord::loopCount |
Number of loops started by an execution of this tag.
This number is 0 if the sound must be played only once, 1 to play twice and so on...
It is not known whether a value exists to specify "loop forever"
Referenced by gnash::SWF::StartSoundTag::executeActions(), gnash::Button::mouseEvent(), and read().
bool gnash::SWF::SoundInfoRecord::noMultiple |
Referenced by gnash::SWF::StartSoundTag::executeActions(), gnash::Button::mouseEvent(), and read().
unsigned int gnash::SWF::SoundInfoRecord::outPoint |
Out point, 44100 for one second.
See http://sswf.sourceforge.net/SWFalexref.html#swf_soundinfo NOTE: std::numeric_limits<unsigned int>::max() means none
Referenced by gnash::SWF::StartSoundTag::executeActions(), gnash::Button::mouseEvent(), and read().
bool gnash::SWF::SoundInfoRecord::stopPlayback |
If true this tag actually stops the sound rather then playing it.
In a well-formed SWF when this flag is on all others should be off (no loops, no envelopes, no in/out points).
Referenced by gnash::SWF::StartSoundTag::executeActions(), gnash::Button::mouseEvent(), and read().