Gnash  0.8.11dev
StreamSoundBlockTag.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012
3 // Free Software Foundation, Inc.
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 
19 #ifndef GNASH_SWF_STREAMSOUNDBLOCK_TAG_H
20 #define GNASH_SWF_STREAMSOUNDBLOCK_TAG_H
21 
22 #include <cstdint>
23 
24 #include "ControlTag.h" // for inheritance
25 #include "SWF.h" // for TagType definition
26 #include "sound_handler.h" // for StreamBlockId identifier
27 
28 // Forward declarations
29 namespace gnash {
30  class SWFStream;
31  class movie_definition;
32  class RunResources;
33 }
34 
35 namespace gnash {
36 namespace SWF {
37 
39 //
51 {
52 public:
53 
55  void executeActions(MovieClip* m, DisplayList& dlist) const;
56 
58  static void loader(SWFStream& in, TagType tag, movie_definition& m,
59  const RunResources& r);
60 
61 private:
62 
64  //
69  StreamSoundBlockTag(std::uint16_t streamId,
71  :
72  _handler_id(streamId),
73  _blockId(blockId)
74  {}
75 
77  const std::uint16_t _handler_id;
78 
81 
82 };
83 
84 
85 } // namespace gnash::SWF
86 } // namespace gnash
87 
88 
89 #endif // GNASH_SWF_STREAMSOUNDBLOCK_TAG_H
90 
91 
92 // Local Variables:
93 // mode: C++
94 // indent-tabs-mode: nil
95 // End:
Client program&#39;s interface to the definition of a movie or sprite.
Definition: movie_definition.h:95
A MovieClip is a container for DisplayObjects.
Definition: MovieClip.h:83
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:30
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
Control tags are swf tags that control the operation of the movie.
Definition: ControlTag.h:43
Definition: GnashKey.h:164
SWF Tag StreamSoundBlock (19).
Definition: StreamSoundBlockTag.h:50
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:53
unsigned long StreamBlockId
Identifier of a streaming sound block.
Definition: sound_handler.h:97
Definition: GnashKey.h:159
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
Load an SWF::SOUNDSTREAMBLOCK (19) tag.
Definition: StreamSoundBlockTag.cpp:57
A list of on-stage DisplayObjects, ordered by depth.
Definition: DisplayList.h:64
Definition: GnashKey.h:331
SWF stream wrapper class.
Definition: SWFStream.h:58
void executeActions(MovieClip *m, DisplayList &dlist) const
Start the associated block of sound.
Definition: StreamSoundBlockTag.cpp:40