summaryrefslogtreecommitdiff
path: root/examples/device/uac2_headset/src/main.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-03-13 00:23:13 +0700
committerhathach <[email protected]>2021-03-13 00:23:13 +0700
commitdb6242f07615f85d8bd1bcf9b6e86c4e031ecc19 (patch)
tree0775316fcdc58edb382c4c680dda3346b5340c71 /examples/device/uac2_headset/src/main.c
parent4ee1216aaf8c0ea6cefb6f690e4a391fe06f1356 (diff)
move AUDIO_SAMPLE_RATE to example main.c
Diffstat (limited to 'examples/device/uac2_headset/src/main.c')
-rw-r--r--examples/device/uac2_headset/src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/device/uac2_headset/src/main.c b/examples/device/uac2_headset/src/main.c
index cdb29f3f4..f5360a0b6 100644
--- a/examples/device/uac2_headset/src/main.c
+++ b/examples/device/uac2_headset/src/main.c
@@ -34,6 +34,10 @@
// MACRO CONSTANT TYPEDEF PROTOTYPES
//--------------------------------------------------------------------+
+#ifndef AUDIO_SAMPLE_RATE
+#define AUDIO_SAMPLE_RATE 48000
+#endif
+
/* Blink pattern
* - 25 ms : streaming data
* - 250 ms : device not mounted