AVBlocks for .NET
3.0
Audio and Video Software Development Kit
|
Describes an elementary audio stream. More...
Public Member Functions | |
AudioStreamInfo () | |
Constructs a default AudioStreamInfo object. | |
override void | Reset () |
Resets the audio stream information to its default state. | |
![]() | |
virtual object | Clone () |
Creates a deep copy of this object. | |
virtual void | Reset () |
Resets the stream information to its default state. | |
Properties | |
int | BitsPerSample [get, set] |
The number of valid bits per sample (sample resolution). | |
int | BytesPerFrame [get, set] |
The number of bytes occupied by an audio frame (smallest descrete unit). | |
AudioChannelFlags | ChannelLayout [get, set] |
The channel layout defines the mapping between channels and speakers. | |
int | Channels [get, set] |
The number of audio channels in the stream. | |
PcmFlags | PcmFlags [get, set] |
Various properties of the audio stream. | |
int | SampleRate [get, set] |
The audio sample rate in Hz. | |
![]() | |
int | Bitrate [get, set] |
The stream bitrate expressed in bits per second. | |
BitrateMode | BitrateMode [get, set] |
The stream bitrate mode. | |
double | Duration [get, set] |
The stream duration in seconds. | |
int | ID [get, set] |
The ID of the elementary stream. | |
virtual bool | Immutable [get, protected set] |
Returns whether the object is immutable. | |
MediaType | MediaType [get] |
Media type. | |
int | ProgramNumber [get, set] |
The number of the program to which the elementary stream belongs. | |
StreamSubType | StreamSubType [get, set] |
The stream subtype. | |
StreamType | StreamType [get, set] |
The stream type. | |
Describes an elementary audio stream.
|
virtual |
Resets the audio stream information to its default state.
Reimplemented from StreamInfo.
References StreamInfo.Immutable.
|
getset |
The number of valid bits per sample (sample resolution).
Common values are 8, 16, 20, 24 and 32.
Normally BitsPerSample sample is defined only for uncompressed audio streams. For compressed audio it is not defined and is 0. However it is possible for a compressed audio stream to return a positive value as an indication of audio quality. It can also designate the bits per sample of the LPCM stream once the compressed stream is decoded.
|
getset |
The number of bytes occupied by an audio frame (smallest descrete unit).
A frame is the smallest descrete 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 BytesPerFrame is 0.
For an LCPM stream the frame size is constant. In this case BytesPerFrame is greater than 0.
Normally for interleaved LPCM streams the following is true: