Classes | Public Member Functions | Public Attributes

gnash::media::AudioInfo Class Reference

Information about an audio stream. More...

#include <MediaParser.h>

List of all members.

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< ExtraInfoextra
 Extra info about audio stream, if when needed.

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
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.
Todo:
document units.
Parameters:
sampleSizei Sample size, in bytes.
stereoi Sample type (stereo if true, mono otherwise).
Todo:
document if and how intepretation of sampleSizei changes
Parameters:
durationi Nominal audio stream duration, in milliseconds.
typei Changes interpretation of the codeci parameter.

Member Data Documentation

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().

Extra info about audio stream, if when needed.

Could be ExtraVideoInfoFlv or a media-handler specific info

Size of each sample, in bytes.


The documentation for this class was generated from the following file: