summaryrefslogtreecommitdiff
path: root/examples/device/audio_test/src/main.c
diff options
context:
space:
mode:
authorReinhard Panhuber <[email protected]>2021-03-10 19:32:13 +0100
committerReinhard Panhuber <[email protected]>2021-03-10 19:32:13 +0100
commitd5a5a1cab63e8e43b22f13db95df35afdfa6befb (patch)
treedcc98d73c01d9bf3ab1f045fc1284a4e0a63871e /examples/device/audio_test/src/main.c
parentde1f36f2b02b00d8012748be304186e1eb78c728 (diff)
Implement audio PCM type I enc./decoding acc. to 2.3.1.5 Audio Streams
Extending capabilities of support FIFOs Removing copy from to FIFO Adjusting audio examples Remove peek/read into other FIFO
Diffstat (limited to 'examples/device/audio_test/src/main.c')
-rw-r--r--examples/device/audio_test/src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/device/audio_test/src/main.c b/examples/device/audio_test/src/main.c
index c63e64934..c2406bd23 100644
--- a/examples/device/audio_test/src/main.c
+++ b/examples/device/audio_test/src/main.c
@@ -73,12 +73,12 @@ int main(void)
tusb_init();
// Init values
- sampFreq = 48000;
+ sampFreq = AUDIO_SAMPLE_RATE;
clkValid = 1;
sampleFreqRng.wNumSubRanges = 1;
- sampleFreqRng.subrange[0].bMin = 48000;
- sampleFreqRng.subrange[0].bMax = 48000;
+ sampleFreqRng.subrange[0].bMin = AUDIO_SAMPLE_RATE;
+ sampleFreqRng.subrange[0].bMax = AUDIO_SAMPLE_RATE;
sampleFreqRng.subrange[0].bRes = 0;
while (1)