mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add comments for the FLV/RTMP enums
This commit is contained in:
parent
9860e390a3
commit
f020690ed7
1 changed files with 22 additions and 13 deletions
|
@ -37,11 +37,14 @@ class SrsStream;
|
||||||
#define SRS_MAX_CODEC_SAMPLE 128
|
#define SRS_MAX_CODEC_SAMPLE 128
|
||||||
#define _SRS_AAC_SAMPLE_RATE_UNSET 15
|
#define _SRS_AAC_SAMPLE_RATE_UNSET 15
|
||||||
|
|
||||||
// Sampling rate. The following values are defined:
|
/**
|
||||||
// 0 = 5.5 kHz = 5512 Hz
|
* the FLV/RTMP supported audio sample rate.
|
||||||
// 1 = 11 kHz = 11025 Hz
|
* Sampling rate. The following values are defined:
|
||||||
// 2 = 22 kHz = 22050 Hz
|
* 0 = 5.5 kHz = 5512 Hz
|
||||||
// 3 = 44 kHz = 44100 Hz
|
* 1 = 11 kHz = 11025 Hz
|
||||||
|
* 2 = 22 kHz = 22050 Hz
|
||||||
|
* 3 = 44 kHz = 44100 Hz
|
||||||
|
*/
|
||||||
enum SrsCodecAudioSampleRate
|
enum SrsCodecAudioSampleRate
|
||||||
{
|
{
|
||||||
// set to the max value to reserved, for array map.
|
// set to the max value to reserved, for array map.
|
||||||
|
@ -53,11 +56,14 @@ enum SrsCodecAudioSampleRate
|
||||||
SrsCodecAudioSampleRate44100 = 3,
|
SrsCodecAudioSampleRate44100 = 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Size of each audio sample. This parameter only pertains to
|
/**
|
||||||
// uncompressed formats. Compressed formats always decode
|
* the FLV/RTMP supported audio sample size.
|
||||||
// to 16 bits internally.
|
* Size of each audio sample. This parameter only pertains to
|
||||||
// 0 = 8-bit samples
|
* uncompressed formats. Compressed formats always decode
|
||||||
// 1 = 16-bit samples
|
* to 16 bits internally.
|
||||||
|
* 0 = 8-bit samples
|
||||||
|
* 1 = 16-bit samples
|
||||||
|
*/
|
||||||
enum SrsCodecAudioSampleSize
|
enum SrsCodecAudioSampleSize
|
||||||
{
|
{
|
||||||
// set to the max value to reserved, for array map.
|
// set to the max value to reserved, for array map.
|
||||||
|
@ -67,9 +73,12 @@ enum SrsCodecAudioSampleSize
|
||||||
SrsCodecAudioSampleSize16bit = 1,
|
SrsCodecAudioSampleSize16bit = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Mono or stereo sound
|
/**
|
||||||
// 0 = Mono sound
|
* the FLV/RTMP supported audio sound type/channel.
|
||||||
// 1 = Stereo sound
|
* Mono or stereo sound
|
||||||
|
* 0 = Mono sound
|
||||||
|
* 1 = Stereo sound
|
||||||
|
*/
|
||||||
enum SrsCodecAudioSoundType
|
enum SrsCodecAudioSoundType
|
||||||
{
|
{
|
||||||
// set to the max value to reserved, for array map.
|
// set to the max value to reserved, for array map.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue