SWF Tag StreamSoundBlock (19). More...
#include <StreamSoundBlockTag.h>
Public Member Functions | |
| boost::uint16_t | getStreamId () const |
| Get the identifier of the sound stream this block belongs to. | |
| 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::getObject(), gnash::getRunResources(), gnash::sound::sound_handler::playStream(), gnash::MovieClip::setStreamSoundId(), and gnash::RunResources::soundHandler().
| boost::uint16_t gnash::SWF::StreamSoundBlockTag::getStreamId | ( | ) | const [inline] |
Get the identifier of the sound stream this block belongs to.
TODO: why is this an uint16_t if sound_handler::create_sound returns an int ? I vote for a sound_handler::SoundId typedef
| void gnash::SWF::StreamSoundBlockTag::loader | ( | SWFStream & | in, | |
| TagType | tag, | |||
| movie_definition & | m, | |||
| const RunResources & | r | |||
| ) | [static] |
Load an SWF::SOUNDSTREAMBLOCK (19) tag.
References _, gnash::movie_definition::addControlTag(), gnash::sound::sound_handler::addSoundBlock(), gnash::media::AUDIO_CODEC_MP3, data, gnash::SWFStream::ensureBytes(), gnash::movie_definition::get_loading_sound_stream_id(), gnash::sound::sound_handler::get_sound_info(), gnash::SWFStream::get_tag_end_position(), gnash::media::SoundInfo::getFormat(), gnash::media::SoundInfo::getSampleCount(), IF_VERBOSE_MALFORMED_SWF, LOG_ONCE, gnash::SWFStream::read(), gnash::SWFStream::read_u16(), gnash::RunResources::soundHandler(), gnash::SWF::SOUNDSTREAMBLOCK, gnash::SWFStream::tell(), and UNUSED.
1.7.1