Information about an audio stream. More...
#include <MediaParser.h>
Classes | |
class | ExtraInfo |
Extra info about an audio stream. More... | |
Public Member Functions | |
AudioInfo (int codeci, boost::uint16_t sampleRatei, boost::uint16_t sampleSizei, bool stereoi, boost::uint64_t durationi, codecType typei) | |
Construct an AudioInfo object. | |
Public Attributes | |
int | codec |
Codec identifier. | |
boost::uint16_t | sampleRate |
boost::uint16_t | sampleSize |
Size of each sample, in bytes. | |
bool | stereo |
boost::uint64_t | duration |
codecType | type |
std::auto_ptr< ExtraInfo > | extra |
Extra info about audio stream, if when needed. |
Information about an audio stream.
The information stored is codec-id, samplerate, samplesize, stereo, duration and codec-type.
Additionally, an abstract ExtraInfo can be hold.
gnash::media::AudioInfo::AudioInfo | ( | int | codeci, | |
boost::uint16_t | sampleRatei, | |||
boost::uint16_t | sampleSizei, | |||
bool | stereoi, | |||
boost::uint64_t | durationi, | |||
codecType | typei | |||
) | [inline] |
Construct an AudioInfo object.
codeci | Audio codec id. To be interpreted as a media::audioCodecType if the typei parameter is FLASH; otherwise it's an opaque number to use for codec information transfer between a MediaParser and a AudioDecoder from the same media handler module. | |
sampleRatei | Nominal sample rate. |
sampleSizei | Sample size, in bytes. | |
stereoi | Sample type (stereo if true, mono otherwise). |
durationi | Nominal audio stream duration, in milliseconds. | |
typei | Changes interpretation of the codeci parameter. |
Codec identifier.
This has to be interpreted as audioCodecType if codecType type is FLASH or interpretation is opaque and we rely on the assumption that the AudioInfo creator and the AudioInfo user have a way to get a shared interpretation
Referenced by gnash::media::ffmpeg::AudioDecoderFfmpeg::AudioDecoderFfmpeg().
boost::uint64_t gnash::media::AudioInfo::duration |
std::auto_ptr<ExtraInfo> gnash::media::AudioInfo::extra |
Extra info about audio stream, if when needed.
Could be ExtraVideoInfoFlv or a media-handler specific info
boost::uint16_t gnash::media::AudioInfo::sampleRate |
boost::uint16_t gnash::media::AudioInfo::sampleSize |
Size of each sample, in bytes.