Gnash  0.8.10
StreamSoundBlockTag.h
Go to the documentation of this file.
00001 // 
00002 //   Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012
00003 //   Free Software Foundation, Inc.
00004 // 
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation; either version 3 of the License, or
00008 // (at your option) any later version.
00009 // 
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 // 
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018 
00019 #ifndef GNASH_SWF_STREAMSOUNDBLOCK_TAG_H
00020 #define GNASH_SWF_STREAMSOUNDBLOCK_TAG_H
00021 
00022 #include <boost/cstdint.hpp> 
00023 
00024 #include "ControlTag.h" // for inheritance
00025 #include "SWF.h" // for TagType definition
00026 #include "sound_handler.h" // for StreamBlockId identifier
00027 
00028 // Forward declarations
00029 namespace gnash {
00030     class SWFStream;
00031     class movie_definition;
00032     class RunResources;
00033 }
00034 
00035 namespace gnash {
00036 namespace SWF {
00037 
00039 //
00050 class StreamSoundBlockTag : public ControlTag
00051 {
00052 public:
00053 
00055     void executeActions(MovieClip* m, DisplayList& dlist) const;
00056 
00058     static void loader(SWFStream& in, TagType tag, movie_definition& m,
00059             const RunResources& r);
00060 
00061 private:
00062 
00064     //
00069     StreamSoundBlockTag(boost::uint16_t streamId,
00070                         sound::sound_handler::StreamBlockId blockId)
00071         :
00072         _handler_id(streamId),
00073         _blockId(blockId)
00074     {}
00075 
00077     const boost::uint16_t _handler_id;
00078 
00080     const sound::sound_handler::StreamBlockId _blockId;
00081 
00082 };
00083 
00084 
00085 } // namespace gnash::SWF
00086 } // namespace gnash
00087 
00088 
00089 #endif // GNASH_SWF_STREAMSOUNDBLOCK_TAG_H
00090 
00091 
00092 // Local Variables:
00093 // mode: C++
00094 // indent-tabs-mode: nil
00095 // End: