summaryrefslogtreecommitdiff
path: root/examples/device/audio_test/src/main.c
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2024-04-27 22:16:30 +0200
committerHiFiPhile <[email protected]>2024-04-28 00:28:11 +0200
commit7dd26877de2ed85a608190a76acf960e256c88bf (patch)
tree7578326644f089bb76803c37b88e618a11dfad47 /examples/device/audio_test/src/main.c
parent4f41e105b36dc4f61978ec54b899ebfed967e69c (diff)
Update audio_test & audio_test_freertos examples to work with high-speed.
Diffstat (limited to 'examples/device/audio_test/src/main.c')
-rw-r--r--examples/device/audio_test/src/main.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/examples/device/audio_test/src/main.c b/examples/device/audio_test/src/main.c
index 06783ccfb..f79bb4468 100644
--- a/examples/device/audio_test/src/main.c
+++ b/examples/device/audio_test/src/main.c
@@ -42,10 +42,6 @@
// MACRO CONSTANT TYPEDEF PROTYPES
//--------------------------------------------------------------------+
-#ifndef AUDIO_SAMPLE_RATE
-#define AUDIO_SAMPLE_RATE 48000
-#endif
-
/* Blink pattern
* - 250 ms : device not mounted
* - 1000 ms : device mounted
@@ -90,12 +86,12 @@ int main(void)
}
// Init values
- sampFreq = AUDIO_SAMPLE_RATE;
+ sampFreq = CFG_TUD_AUDIO_FUNC_1_SAMPLE_RATE;
clkValid = 1;
sampleFreqRng.wNumSubRanges = 1;
- sampleFreqRng.subrange[0].bMin = AUDIO_SAMPLE_RATE;
- sampleFreqRng.subrange[0].bMax = AUDIO_SAMPLE_RATE;
+ sampleFreqRng.subrange[0].bMin = CFG_TUD_AUDIO_FUNC_1_SAMPLE_RATE;
+ sampleFreqRng.subrange[0].bMax = CFG_TUD_AUDIO_FUNC_1_SAMPLE_RATE;
sampleFreqRng.subrange[0].bRes = 0;
while (1)