| 223 | constexpr int supportedSampleRates[] = { 8000, 12000, 16000, 24000, 48000 }; |
| 224 | |
| 225 | bool IsValidSampleRate(int sampleRate) noexcept |
| 226 | { |
| 227 | for (auto sr : supportedSampleRates) |
| 228 | if (sr == sampleRate) |
| 229 | return true; |
| 230 | return false; |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | class OpusExportProcessor final : public ExportProcessor |