-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: Add USB Audio to broadcast audio source
Adds support for using a connected host to broadcast audio via USB Audio. Sets BT_DATA_BROADCAST_NAME to BT_DEVICE_NAME for discovery on receivers not using BT_DEVICE_NAME. Offload LC3 encoding to separate thread. Limits streams to one channel. Signed-off-by: Lars Knudsen <[email protected]>
- Loading branch information
Showing
4 changed files
with
292 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
samples/bluetooth/broadcast_audio_source/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence | ||
# inctease stack size for that thread. | ||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096 | ||
CONFIG_MAIN_STACK_SIZE=4096 | ||
|
||
# Use USB Audio as input | ||
CONFIG_USE_USB_AUDIO_INPUT=y | ||
CONFIG_USB_DEVICE_PRODUCT="Zephyr Broadcast Source" | ||
|
||
# Two streams in one subgroup (stereo) | ||
CONFIG_BT_BAP_BROADCAST_SRC_SUBGROUP_COUNT=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.