Go to the documentation of this file.
19 #ifndef GNASH_SWF_STARTSOUND_TAG_H
20 #define GNASH_SWF_STARTSOUND_TAG_H
32 class movie_definition;
54 std::uint16_t m_handler_id;
67 m_handler_id(sound_id)
102 #endif // GNASH_SWF_STARTSOUND_TAG_H
int loopCount
Number of loops started by an execution of this tag.
Definition: SoundInfoRecord.h:66
Control tags are swf tags that control the operation of the movie.
Definition: ControlTag.h:44
void skip_to_tag_end()
Discard all bytes up to end of tag.
Definition: SWFStream.h:354
void startSound(int id, int loops, const SoundEnvelopes *env, bool allowMultiple, unsigned int inPoint=0, unsigned int outPoint=std::numeric_limits< unsigned int >::max())
Start playback of an event sound.
Definition: sound_handler.cpp:517
void log_swferror(StringType msg, Args... args)
Definition: log.h:325
void executeActions(MovieClip *, DisplayList &) const
Execute Action tags.
Definition: StartSoundTag.cpp:80
@ STARTSOUND
Definition: SWF.h:47
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:31
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
Load a SWF::STARTSOUND tag.
Definition: StartSoundTag.cpp:39
virtual void stopEventSound(int sound_handle)
Remove scheduled requests to play the specified sound buffer slot.
Definition: sound_handler.cpp:283
@ STARTSOUND2
Definition: SWF.h:115
#define _(String)
Definition: log.h:44
void read_string(std::string &to)
Reads a null-terminated string from the given file and assigns it to the given std::string,...
Definition: SWFStream.cpp:395
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
void read(SWFStream &in)
Definition: SoundInfoRecord.cpp:32
unsigned int inPoint
In point, 44100 for one second.
Definition: SoundInfoRecord.h:79
@ m
Definition: GnashKey.h:159
A MovieClip is a container for DisplayObjects.
Definition: MovieClip.h:84
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:404
A list of on-stage DisplayObjects, ordered by depth.
Definition: DisplayList.h:65
Definition: SoundInfoRecord.h:36
An identifier for a sound sample managed by a sound_handler.
Definition: sound_definition.h:62
@ r
Definition: GnashKey.h:164
const RunResources & getRunResources(const as_object &o)
Get the RunResources from an as_object.
Definition: as_object.cpp:1142
SWF Tag StartSound (15)
Definition: StartSoundTag.h:45
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
Load a SWF::STARTSOUND2 tag.
Definition: StartSoundTag.cpp:110
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
int m_sound_handler_id
Definition: sound_definition.h:65
unsigned int outPoint
Out point, 44100 for one second.
Definition: SoundInfoRecord.h:87
sound::SoundEnvelopes envelopes
Sound effects (envelopes) for this start of the sound.
Definition: SoundInfoRecord.h:93
#define IF_VERBOSE_PARSE(x)
Definition: log.h:378
void log_parse(StringType msg, Args... args)
Definition: log.h:313
Sound mixer.
Definition: sound_handler.h:88
as_object * getObject(const DisplayObject *d)
Return the as_object associated with a DisplayObject if it exists.
Definition: DisplayObject.h:1160
std::uint16_t read_u16()
Read a aligned unsigned 16-bit value from the stream.
Definition: SWFStream.cpp:332
std::vector< SoundEnvelope > SoundEnvelopes
A vector of SoundEnvelope objects.
Definition: SoundEnvelope.h:60
bool stopPlayback
If true this tag actually stops the sound rather then playing it.
Definition: SoundInfoRecord.h:73
bool noMultiple
Definition: SoundInfoRecord.h:53
sound::sound_handler * soundHandler() const
Get a pointer to a sound::sound_handler set by a hosting application.
Definition: RunResources.h:96
SWF stream wrapper class.
Definition: SWFStream.h:59
void align()
Consume all bits of current byte.
Definition: SWFStream.h:135
void ensureBytes(unsigned long needed)
Ensure the requested number of bytes are available for an aligned read in the currently opened tag.
Definition: SWFStream.cpp:50
@ SWF
Definition: GnashKey.h:331
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
StartSound2Tag (SWF9)
Definition: StartSoundTag.h:90