Removed 32kHz support when PDM mics enabled (lib_mic_array supports integer decimation factors only)

This commit is contained in:
Ross Owen
2015-12-08 15:17:25 +00:00
parent 47e5629acd
commit 2ae99f11e6
2 changed files with 11 additions and 1 deletions

View File

@@ -874,7 +874,11 @@ int AudioClassRequests_2(XUD_ep ep0_out, XUD_ep ep0_in, USB_SetupPacket_t &sp, c
}
#endif
/* Special case for some low sample rates */
unsigned lowSampleRateList[] = {8000, 11025, 12000, 16000, 32000};
unsigned lowSampleRateList[] = {8000, 11025, 12000, 16000,
#if (NUM_PDM_MICS == 0)
32000
#endif
};
for (int k = 0; k < sizeof(lowSampleRateList)/sizeof(unsigned); k++)
{