diff options
| author | HiFiPHile <[email protected]> | 2026-08-27 09:58:09 +0200 |
|---|---|---|
| committer | HiFiPHile <[email protected]> | 2026-08-27 10:36:52 +0200 |
| commit | ed70f7206694e2ee5dfc0e7b3b947c27413deba0 (patch) | |
| tree | 07e086ff2b5bb559d5d080abc787a91a4c868bcb /examples/host/audio_host/src/main.c | |
| parent | fa72b235db44741ee72897a5fa252e858244b6ec (diff) | |
audio: service example FIFOs at watermarks
Move capture and playback FIFO servicing into the main-loop task at half-full and half-drained watermarks. Use transfer callbacks only for diagnostics, share one conversion buffer, and demonstrate that application reads and writes need not be synchronized to USB callbacks.
Signed-off-by: HiFiPHile <[email protected]>
Diffstat (limited to 'examples/host/audio_host/src/main.c')
| -rw-r--r-- | examples/host/audio_host/src/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/host/audio_host/src/main.c b/examples/host/audio_host/src/main.c index 45c468f23..c7800958b 100644 --- a/examples/host/audio_host/src/main.c +++ b/examples/host/audio_host/src/main.c @@ -42,8 +42,7 @@ int main(void) { // tinyusb host task tuh_task(); led_blinking_task(); - audio_app_task_read(); - audio_app_task_write(); + audio_app_task(); defer_queue_task(); } } |
