Gnash 0.8.10dev
|
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_STARTSOUND_TAG_H 00019 #define GNASH_SWF_STARTSOUND_TAG_H 00020 00021 #include "ControlTag.h" // for inheritance 00022 #include "sound_handler.h" // for sound_envelope (composition) 00023 #include "SWF.h" // for TagType definition 00024 #include "SoundInfoRecord.h" 00025 00026 #include <boost/cstdint.hpp> // for boost::uint16_t and friends 00027 00028 00029 // Forward declarations 00030 namespace gnash { 00031 class SWFStream; 00032 class movie_definition; 00033 class sound_sample; 00034 class RunResources; 00035 } 00036 00037 namespace gnash { 00038 namespace SWF { 00039 00041 // 00044 class StartSoundTag : public ControlTag 00045 { 00054 boost::uint16_t m_handler_id; 00055 00057 // 00065 StartSoundTag(SWFStream& in, int sound_id) 00066 : 00067 m_handler_id(sound_id) 00068 { 00069 _soundInfo.read(in); 00070 } 00071 00072 SoundInfoRecord _soundInfo; 00073 00074 public: 00075 00076 // This is not a state tag. 00077 void executeActions(MovieClip* /* m */, DisplayList& /* dlist */) const; 00078 00080 static void loader(SWFStream& in, TagType tag, movie_definition& m, 00081 const RunResources& r); 00082 00083 }; 00084 00086 // 00089 class StartSound2Tag 00090 { 00091 public: 00092 00094 static void loader(SWFStream& in, TagType tag, movie_definition& m, 00095 const RunResources& r); 00096 }; 00097 00098 } // namespace gnash::SWF 00099 } // namespace gnash 00100 00101 00102 #endif // GNASH_SWF_STARTSOUND_TAG_H 00103 00104 00105 // Local Variables: 00106 // mode: C++ 00107 // indent-tabs-mode: t 00108 // End: