From cd491e296e0c8bce113d5474955d08f4c99b3099 Mon Sep 17 00:00:00 2001
From: Reinhard Panhuber <panhuber_reinhard@gmx.at>
Date: Sun, 14 Mar 2021 18:55:16 +0100
Subject: [PATCH] Intermediate commit

---
 src/class/audio/audio_device.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/class/audio/audio_device.c b/src/class/audio/audio_device.c
index 00d95ede5..73f265a8f 100644
--- a/src/class/audio/audio_device.c
+++ b/src/class/audio/audio_device.c
@@ -206,6 +206,15 @@ CFG_TUSB_MEM_SECTION audiod_interface_t _audiod_itf[CFG_TUD_AUDIO];
 
 extern const uint16_t tud_audio_desc_lengths[];
 
+// bSubslotSize for PCM encoding/decoding using support FIFOs
+#if CFG_TUD_AUDIO_EPSIZE_IN && CFG_TUD_AUDIO_TX_SUPPORT_SW_FIFO_SIZE
+extern const tud_audio_n_bytes_per_sample_tx[CFG_TUD_AUDIO][CFG_TUD_AUDIO_N_AS_INT];
+#endif
+
+#if CFG_TUD_AUDIO_EPSIZE_OUT && CFG_TUD_AUDIO_RX_SUPPORT_SW_FIFO_SIZE
+extern const tud_audio_n_bytes_per_sample_rx[CFG_TUD_AUDIO][CFG_TUD_AUDIO_N_AS_INT];
+#endif
+
 #if CFG_TUD_AUDIO_EP_OUT_SW_BUFFER_SIZE
 static bool audiod_rx_done_cb(uint8_t rhport, audiod_interface_t* audio, uint16_t n_bytes_received);
 #endif