|
virtual int32_t | bitsPerSample () const =0 |
| Returns the number of bits per sample (sample resolution).
|
|
virtual int32_t | bytesPerFrame () const =0 |
| Returns the number of bytes occupied by an audio frame (smallest discrete unit).
|
|
virtual int32_t | channelLayout () const =0 |
| Returns the channel layout which defines the mapping between channels and speakers.
|
|
virtual int32_t | channels () const =0 |
| Returns the number of audio channels.
|
|
virtual AudioStreamInfo * | clone () const =0 |
| Creates a copy of this object.
|
|
virtual bool_t | copyTo (AudioStreamInfo *destination) const =0 |
| Copies the state of the current object to a destination object of the same type.
|
|
virtual int32_t | pcmFlags () const =0 |
| Returns the audio format flags which describe various properties of the audio stream.
|
|
virtual int32_t | sampleRate () const =0 |
| Returns the audio sample rate.
|
|
virtual bool_t | setBitsPerSample (int32_t bitsPerSample)=0 |
| Sets the number of bits per sample (sample resolution).
|
|
virtual bool_t | setBytesPerFrame (int32_t bytesPerFrame)=0 |
| Sets the number of bytes occupied by an audio frame (smallest discrete unit).
|
|
virtual bool_t | setChannelLayout (int32_t channelLayout)=0 |
| Sets the channel layout which defines the mapping between channels and speakers.
|
|
virtual bool_t | setChannels (int32_t numChannels)=0 |
| Sets the number of audio channels.
|
|
virtual bool_t | setPcmFlags (int32_t flags)=0 |
| Sets the audio format flags which describe various properties of the audio stream.
|
|
virtual bool_t | setSampleRate (int32_t sampleRate)=0 |
| Sets the audio sample rate.
|
|
virtual int32_t | bitrate () const =0 |
| Returns the stream bitrate.
|
|
virtual int32_t | bitrateMode () const =0 |
| Returns the stream bitrate mode.
|
|
virtual StreamInfo * | clone () const =0 |
| Creates a copy of this object.
|
|
virtual bool_t | copyTo (StreamInfo *destination) const =0 |
| Copies the state of the current object to a destination object of the same type.
|
|
virtual double | duration () const =0 |
| Returns the stream duration.
|
|
virtual int32_t | ID () const =0 |
| Returns the ID of the elementary stream.
|
|
virtual bool_t | immutable () const =0 |
| Returns whether the object is immutable.
|
|
virtual MediaType::Enum | mediaType () const =0 |
| Returns the stream media type.
|
|
virtual int32_t | programNumber () const =0 |
| Returns the number of the program to which the elementary stream belongs.
|
|
virtual bool_t | reset ()=0 |
| Resets the stream information to its default state.
|
|
virtual bool_t | setBitrate (int32_t bitrate)=0 |
| Sets the stream bitrate.
|
|
virtual bool_t | setBitrateMode (int32_t bitrateMode)=0 |
| Sets the stream bitrate mode.
|
|
virtual bool_t | setDuration (double duration)=0 |
| Sets the stream duration in seconds.
|
|
virtual bool_t | setID (int32_t id)=0 |
| Sets the ID of the elementary stream.
|
|
virtual bool_t | setProgramNumber (int32_t programNumber)=0 |
| Sets the program to which the elementary stream belongs.
|
|
virtual bool_t | setStreamSubType (StreamSubType::Enum type)=0 |
| Sets the stream subtype.
|
|
virtual bool_t | setStreamType (StreamType::Enum type)=0 |
| Sets the stream type.
|
|
virtual StreamSubType::Enum | streamSubType () const =0 |
| Returns the stream subtype.
|
|
virtual StreamType::Enum | streamType () const =0 |
| Returns the stream type.
|
|
virtual int32_t | release () const =0 |
| Releases the instance.
|
|
virtual int32_t | retain () const =0 |
| Retains the instance.
|
|
virtual int32_t | retainCount () const =0 |
| Returns the current reference count.
|
|
AudioStreamInfo describes an elementary audio stream.
virtual int32_t bytesPerFrame |
( |
| ) |
const |
|
pure virtual |
Returns the number of bytes occupied by an audio frame (smallest discrete unit).
- Returns
- bytes per frame.
A frame is the smallest unit in an audio stream. It may contain one or more samples. Depending on the audio stream type the frame may contain fixed or variable number of samples.
For compressed streams the frame size is variable even if there are fixed number of samples in each frame. In this case bytes per frame is 0.
For an LCPM stream the frame size is constant. In this case bytes per frame is a positive value. Normally for interleaved LPCM streams the following is true:
- Returns
- TRUE if bytes per sample is successfully set, otherwise FALSE.