Home | History | Annotate | Download | only in acm2

Lines Matching refs:rate

33 bool IsISACRateValid(int rate) {
34 return (rate == -1) || ((rate <= 56000) && (rate >= 10000));
38 bool IsILBCRateValid(int rate, int frame_size_samples) {
40 (rate == 13300)) {
43 (rate == 15200)) {
51 bool IsOpusRateValid(int rate) {
52 return (rate >= 6000) && (rate <= 510000);
237 // Comfort Noise is special case, packet-size & rate is not checked.
242 // RED is special case, packet-size & rate is not checked.
270 // Check the validity of rate. Codecs with multiple rates have their own
273 return IsISACRateValid(codec_inst.rate) ? codec_id : kInvalidRate;
275 return IsILBCRateValid(codec_inst.rate, codec_inst.pacsize)
278 return IsOpusRateValid(codec_inst.rate)
282 return database_[codec_id].rate == codec_inst.rate ? codec_id : kInvalidRate;