<< Click to display table of contents >> TRVAudioPlayer.EncodeAudioCodec, EncodeAudioCodecName, EncodeBitrate, EncodeChannels, EncodeSampleFormat, EncodeSampleRate |
The properties defining parameters for sound recording.
property EncodeAudioCodec: TRVAudioCodec;
property EncodeAudioCodecName: String;
property EncodeBitrate: Integer;
property EncodeSampleRate: Integer;
property EncodeChannels: Integer;
property EncodeSampleFormat: TRVSampleFormat;
EncodeSampleRate is a number of audio samples played in 1 second. EncodeSampleFormat defines format of each audio sample.
EncodeChannels is a number of audio channels (1 – mono, 2 – stereo, etc.).
EncodeBitrate is a number of bits processed in 1 second when playing sound from a recorded file, it affects compression quality.
EncodeAudioCodec is a codec type. It must correspond to the extension of OutputFileName. This is a recommended way to specify the file format. You can use GetListOfAvailableFFmpegAudioCodecs function to get possible values of this property.
EncodeAudioCodecName is a codec name. This is an alternative way to specify the file format. It is useful if you want to use a codec that is not default for the file format (such as codecs that uses a hardware acceleration and depends on a specific hardware). If the specified codec is not available, the component falls back to EncodeAudioCodec. You can use GetListOfAudioEncoders function to get possible values of this property.
Assign Recording = True to start recording.
If you assign values to these properties while sound is being recorded, recording is stopped.
Warning: Some audio formats may be patent-protected in some countries, and supporting these formats will require from you obtaining licenses from the patent owners.
Default values
•EncodeBitrate: 64000
•EncodeSampleRate: 8000
•EncodeChannels: 1
•EncodeAudioCodec: rvmeacWAV
•tEncodeSampleFormat: rvsf8