TRVCamRecorder.AudioBitrate, AudioSampleRate, AudioChannels, AudioBitsPerSample

<< Click to display table of contents >>

TRVCamRecorder.AudioBitrate, AudioSampleRate, AudioChannels, AudioBitsPerSample

Audio encoding parameters.

property AudioBitrate: Integer;
property AudioSampleRate: Integer;
property AudioChannels: Integer;

property AudioSampleFormat: TRVSampleFormat;

AudioSampleRate is a number of audio samples played in 1 second. AudioSampleFormat defines format of each audio sample.

AudioChannels is a number of audio channels (1 – mono, 2 – stereo, etc.).

AudioBitrate is a number of bits processed in 1 second when playing sound from a recorded file, it affects compression quality.

Possible values of these properties depend on the chosen AudioCodec. RVMedia tries to correct values of these properties when passing them to FFmpeg (without changing values of the properties themselves), but it is not always possible.

You can use GetListOfAvailableSampleFormats to get possible values for AudioSampleFormat.

You can use GetListOfAvailableSampleRates to get possible values for AudioSampleRate.

Unfortunately, not all codecs provide these lists.

Default values:

AudioBitrate: 64000

AudioSampleRate: 44100

AudioChannels: 1

AudioSampleFormat: rvsfFloat

See also

AudioSource

AudioCodec