Gnash
0.8.10
|
SWF Tag StreamSoundBlock (19). More...
#include <StreamSoundBlockTag.h>
Public Member Functions | |
void | executeActions (MovieClip *m, DisplayList &dlist) const |
Start the associated block of sound. | |
Static Public Member Functions | |
static void | loader (SWFStream &in, TagType tag, movie_definition &m, const RunResources &r) |
Load an SWF::SOUNDSTREAMBLOCK (19) tag. |
SWF Tag StreamSoundBlock (19).
Virtual control tag for syncing streaming sound to playhead
Gnash will register instances of this ControlTag in the frame containing blocks of a streaming sound, which is occurrences of SWF Tag StreamSoundBlock (19).
The tag will then be used to start playing the specific block in sync with the frame playhead.
void gnash::SWF::StreamSoundBlockTag::executeActions | ( | MovieClip * | m, |
DisplayList & | dlist | ||
) | const [virtual] |
Start the associated block of sound.
Reimplemented from gnash::SWF::ControlTag.
References gnash::getRunResources(), gnash::getObject(), gnash::RunResources::soundHandler(), gnash::MovieClip::setStreamSoundId(), gnash::sound::sound_handler::playStream(), gnash::getRoot(), and gnash::movie_root::setStreamBlock().
void gnash::SWF::StreamSoundBlockTag::loader | ( | SWFStream & | in, |
TagType | tag, | ||
movie_definition & | m, | ||
const RunResources & | r | ||
) | [static] |
Load an SWF::SOUNDSTREAMBLOCK (19) tag.
References assert, gnash::SWF::SOUNDSTREAMBLOCK, gnash::RunResources::soundHandler(), gnash::movie_definition::get_loading_sound_stream_id(), gnash::sound::sound_handler::get_sound_info(), IF_VERBOSE_MALFORMED_SWF, _, gnash::media::SoundInfo::getFormat(), gnash::media::AUDIO_CODEC_MP3, gnash::SWFStream::ensureBytes(), gnash::SWFStream::read_u16(), gnash::media::SoundInfo::getSampleCount(), gnash::SWFStream::get_tag_end_position(), gnash::SWFStream::tell(), gnash::RunResources::mediaHandler(), gnash::media::MediaHandler::getInputPaddingSize(), gnash::SWFStream::read(), gnash::sound::sound_handler::addSoundBlock(), gnash::key::s, and gnash::movie_definition::addControlTag().
Referenced by gnash::SWF::addDefaultLoaders().