Skip to content

Commit 038fc8b

Browse files
Thalleyjhedberg
authored andcommitted
samples: Bluetooth: Refactor TX for unicast audio client
Refactored the unicast audio client sample to use a separate thread for TXing, rather than the system workqueue. This allows us to do blocking waiting operations like buf = net_buf_alloc(&tx_pool, K_FOREVER); and also splits the responsibility of TXing to a new file as well. LC3 handling have also been moved to a new file, so that it does not pollute the source code for non-LC3 supported builds. This also fixes various issues and improves the LC3 handling in the sample. Signed-off-by: Emil Gydesen <[email protected]>
1 parent ea05d61 commit 038fc8b

File tree

10 files changed

+553
-346
lines changed

10 files changed

+553
-346
lines changed

samples/bluetooth/bap_unicast_client/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ target_sources(app PRIVATE
88
src/main.c
99
)
1010

11+
zephyr_sources_ifdef(CONFIG_LIBLC3 src/stream_lc3.c)
12+
zephyr_sources_ifdef(CONFIG_BT_AUDIO_TX src/stream_tx.c)
13+
1114
zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)

0 commit comments

Comments
 (0)