Lines Matching refs:codec
38 // Get supported codec parameters with id
39 int AudioCodingModule::Codec(int list_id, CodecInst* codec) {
40 // Get the codec settings for the codec with the given list ID
41 return acm2::ACMCodecDB::Codec(list_id, codec);
44 // Get supported codec parameters with name, frequency and number of channels.
46 CodecInst* codec,
51 // Get the id of the codec from the database.
55 // We couldn't find a matching codec, set the parameters to unacceptable
57 codec->plname[0] = '\0';
58 codec->pltype = -1;
59 codec->pacsize = 0;
60 codec->rate = 0;
61 codec->plfreq = 0;
65 // Get default codec settings.
66 acm2::ACMCodecDB::Codec(codec_id, codec);
69 // will be the same value as in default codec settings, but not for all.
70 codec->channels = channels;
75 // Get supported codec Index with name, frequency and number of channels.
82 // Checks the validity of the parameters of the given codec
83 bool AudioCodingModule::IsCodecValid(const CodecInst& codec) {
86 int codec_number = acm2::ACMCodecDB::CodecNumber(codec, &mirror_id);
90 "Invalid codec setting");