Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef GNASH_LIBMEDIA_SOUNDINFO_H
00020 #define GNASH_LIBMEDIA_SOUNDINFO_H
00021
00022 #include "MediaParser.h"
00023
00024 namespace gnash {
00025 namespace media {
00026
00028
00034 class SoundInfo {
00035 public:
00037
00068 SoundInfo(audioCodecType format, bool stereo, boost::uint32_t sampleRate,
00069 boost::uint32_t sampleCount, bool is16bit,
00070 boost::int16_t delaySeek=0)
00071 :
00072 _format(format),
00073 _stereo(stereo),
00074 _sampleRate(sampleRate),
00075 _sampleCount(sampleCount),
00076 _delaySeek(delaySeek),
00077 _is16bit(is16bit)
00078 {
00079 }
00080
00082
00084 audioCodecType getFormat() const { return _format; }
00085
00087
00089 bool isStereo() const { return _stereo; }
00090
00092
00094 unsigned long getSampleRate() const { return _sampleRate; }
00095
00097
00103 unsigned long getSampleCount() const { return _sampleCount; }
00104
00106
00109 boost::int16_t getDelaySeek() const { return _delaySeek; }
00110
00112
00114 bool is16bit() const { return _is16bit; }
00115
00116 private:
00118 audioCodecType _format;
00119
00121 unsigned long _dataSize;
00122
00124 bool _stereo;
00125
00127 boost::uint32_t _sampleRate;
00128
00130 boost::uint32_t _sampleCount;
00131
00133 boost::int16_t _delaySeek;
00134
00137 bool _is16bit;
00138 };
00139
00140 }
00141 }
00142
00143 #endif // __SOUNDINFO_H__