+ // Always use 48kHz for OPUS. See the "Input Sample Rate" section of the
+ // spec: http://tools.ietf.org/html/draft-terriberry-oggopus-01#page-11
+ if (audio_codec == kCodecOpus) {
+ samples_per_second = 48000;
+ sample_format = kSampleFormatF32;
+ }
+