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 <boost/cstdint.hpp>
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(boost::uint16_t streamId,
71  :
72  _handler_id(streamId),
73  _blockId(blockId)
74  {}
75 
77  const boost::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: