Gnash 0.8.9

StreamSoundBlockTag.h

Go to the documentation of this file.
00001 // 
00002 //   Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
00003 // 
00004 // This program is free software; you can redistribute it and/or modify
00005 // it under the terms of the GNU General Public License as published by
00006 // the Free Software Foundation; either version 3 of the License, or
00007 // (at your option) any later version.
00008 // 
00009 // This program is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU General Public License for more details.
00013 // 
00014 // You should have received a copy of the GNU General Public License
00015 // along with this program; if not, write to the Free Software
00016 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00017 
00018 #ifndef GNASH_SWF_STREAMSOUNDBLOCK_TAG_H
00019 #define GNASH_SWF_STREAMSOUNDBLOCK_TAG_H
00020 
00021 #include "ControlTag.h" // for inheritance
00022 #include "SWF.h" // for TagType definition
00023 #include "sound_handler.h" // for StreamBlockId identifier
00024 
00025 #include <boost/cstdint.hpp> // for boost::uint16_t and friends
00026  
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 
00054     boost::uint16_t m_handler_id;
00055 
00057     sound::sound_handler::StreamBlockId _blockId;
00058 
00059     //int       latency;
00060 
00061 public:
00062 
00064     //
00068     boost::uint16_t getStreamId() const { return m_handler_id; }
00069 
00071     void executeActions(MovieClip* m, DisplayList& dlist) const;
00072 
00074     static void loader(SWFStream& in, TagType tag, movie_definition& m,
00075             const RunResources& r);
00076 
00077 private:
00078 
00080     //
00088     StreamSoundBlockTag(int streamId,
00089                         sound::sound_handler::StreamBlockId blockId)
00090         :
00091         m_handler_id(streamId),
00092         _blockId(blockId)
00093     {}
00094 };
00095 
00096 
00097 } // namespace gnash::SWF
00098 } // namespace gnash
00099 
00100 
00101 #endif // GNASH_SWF_STREAMSOUNDBLOCK_TAG_H
00102 
00103 
00104 // Local Variables:
00105 // mode: C++
00106 // indent-tabs-mode: nil
00107 // End: