Gnash  0.8.11dev
SoundEnvelope.h
Go to the documentation of this file.
1 // SoundEnvelope.h - sound envelopes
2 //
3 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
4 // Free Software Foundation, Inc
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 
20 #ifndef SOUND_SOUNDENVELOPE_H
21 #define SOUND_SOUNDENVELOPE_H
22 
23 #include <cstdint> // For C99 int types
24 #include <vector> // for SoundEnvelopes typedef
25 
26 
27 namespace gnash {
28 namespace sound {
29 
31 //
35 //
39 {
40 public:
41 
43  //
50  std::uint32_t m_mark44;
51 
53  std::uint16_t m_level0;
54 
56  std::uint16_t m_level1;
57 };
58 
60 typedef std::vector<SoundEnvelope> SoundEnvelopes;
61 
62 
63 
64 } // gnash.sound namespace
65 } // namespace gnash
66 
67 #endif // SOUND_SOUNDENVELOPE_H
A sound envelope.
Definition: SoundEnvelope.h:38
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
std::uint32_t m_mark44
Byte offset this envelope applies to.
Definition: SoundEnvelope.h:50
std::vector< SoundEnvelope > SoundEnvelopes
A vector of SoundEnvelope objects.
Definition: SoundEnvelope.h:60
std::uint16_t m_level1
Volume for the right channel (0..32768)
Definition: SoundEnvelope.h:56
std::uint16_t m_level0
Volume for the left channel (0..32768)
Definition: SoundEnvelope.h:53