Gnash
0.8.10
|
00001 // SoundInfoRecord.h: parse and store a SoundInfoRecord record. 00002 // 00003 // Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 00004 // Free Software Foundation, Inc 00005 // 00006 // This program is free software; you can redistribute it and/or modify 00007 // it under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation; either version 3 of the License, or 00009 // (at your option) any later version. 00010 // 00011 // This program is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU General Public License 00017 // along with this program; if not, write to the Free Software 00018 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 // 00020 00021 #ifndef GNASH_SWF_SOUNDINFO_H 00022 #define GNASH_SWF_SOUNDINFO_H 00023 00024 #include "sound_handler.h" // sound::SoundEnvelopes 00025 00026 #include <limits> 00027 00028 namespace gnash { 00029 class SWFStream; 00030 } 00031 00032 namespace gnash { 00033 namespace SWF { 00034 00035 struct SoundInfoRecord 00036 { 00038 // 00040 SoundInfoRecord() 00041 : 00042 loopCount(0), 00043 inPoint(0), 00044 outPoint(std::numeric_limits<unsigned int>::max()) 00045 {} 00046 00047 bool noMultiple; 00048 bool hasEnvelope; 00049 bool hasLoops; 00050 bool hasOutPoint; 00051 bool hasInPoint; 00052 00054 // 00060 int loopCount; 00061 00063 // 00067 bool stopPlayback; 00068 00070 // 00073 unsigned int inPoint; 00074 00076 // 00081 unsigned int outPoint; 00082 00084 // 00087 sound::SoundEnvelopes envelopes; 00088 00089 void read(SWFStream& in); 00090 00091 }; 00092 00093 } 00094 } 00095 00096 #endif