-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluetooth: USB Audio Starvation in BAP Broadcast Sink Sample #76551
Comments
Hi @smaerup! We appreciate you submitting your first issue for our open-source project. 🌟 Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙 |
@smaerup would you be so kind as to elaborate a bit more :) |
Sorry for the delay, just came back from vacation. |
@smaerup Any updates on this? |
@Thalley I updated the bug description 2 weeks ago, anything else required? |
Ah, sorry, didn't notice that :) Have you tried with anything besides the Java Audio framework? Just want to make sure that the issue is in Zephyr, and not that framework, as I haven't experienced issues when using e.g. pipewire. |
Yes, tried it with both plain Linux & Windows, and there the failure to stop an audio recording does not occur. |
Okay, so the issue seems to be that the sample is not sending empty USB frames to the host when there's no BIS? |
Sorry, was away on vacation. |
Great, then we have a pretty good idea of what the issue is and where to look for at fix. Could you provide the steps to use the Java Audio framework to reproduce the issue? I'm unfamiliar with that framework, and I don't want to spend too much time with that framework to replicate the issue and to verify it. |
The problem as such is already fixed by PR #76270 |
Describe the bug
The bap_broadcast_sink sample app will not send any audio frames over USB if no audio is received from the broadcast source.
This can cause issues on USB host side as some audio implementations does not like to be starved of audio frames. Particularly the Java audio implementation fails when trying to stop an audio recording from a device that has not yet provided any audio frames.
To Reproduce
Expected behavior
When stopping a recording from a device which has not yet received any audio, the recording should be successfully stopped and an audio file containing only silence should be produced.
Environment
OS: (Linux)
Toolchain (Zephyr SDK, Java SDK)
Commit origin/main 36940db
The text was updated successfully, but these errors were encountered: