GetListOfAvailableSampleFormats Procedure

<< Click to display table of contents >>

GetListOfAvailableSampleFormats Procedure

Fills AList with audio sample formats acceptable for the Codec.

Unit [VCL and LCL] MRVFFMpegLists;

Unit [FMX] fmxMRVFFMpegLists;

procedure GetListOfAvailableSampleFormats(Codec: TRVAudioCodec; AList : TStrings);

This function works only if FFmpeg is available. Otherwise, it simply clears AList.

Each added item has a text describing the sample format, and an object equal to the corresponding sample format (a TRVSampleFormat value type-casted to TObject).

Internally, this function uses GetSampleFormatName to assign text to items.