MCPcopy Create free account
hub / github.com/audacity/audacity / IsValidSampleRate

Function IsValidSampleRate

modules/import-export/mod-opus/ExportOpus.cpp:225–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

InitializeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected