Skip to content
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

Audio Stream Control Service #359

Merged
merged 9 commits into from
Dec 11, 2023
Merged

Audio Stream Control Service #359

merged 9 commits into from
Dec 11, 2023

Conversation

zxzxwu
Copy link
Collaborator

@zxzxwu zxzxwu commented Dec 1, 2023

Based on #356

Status: (Sink only) Play, pause, decoding are verified.

@zxzxwu zxzxwu mentioned this pull request Dec 2, 2023
16 tasks
@zxzxwu zxzxwu force-pushed the ascs branch 4 times, most recently from 3c8d627 to ffbaa7e Compare December 7, 2023 11:30
@zxzxwu
Copy link
Collaborator Author

zxzxwu commented Dec 7, 2023

In run_unicast_server.py, dlc3 from https://github.com/google/liblc3 is used to decode the LC3 pdu. Seems like it needs a relatively large buffer to decode, so the latency is pretty high.

It would be easier to use if we can pack a liblc3 interface into Python, but I am not familiar with this part.

@zxzxwu zxzxwu changed the title [WIP] Audio Stream Control Service Audio Stream Control Service Dec 8, 2023
@zxzxwu zxzxwu marked this pull request as ready for review December 8, 2023 03:01
bumble/profiles/bap.py Outdated Show resolved Hide resolved
@@ -452,6 +759,417 @@ def __init__(
super().__init__(characteristics)


class AseStateMachine(gatt.Characteristic):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to have the characteristic as a property of AseStateMachine rather than directly inheriting from gatt.Characteristic? The characteristic value (read and write) can easily be delegated to this object.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe in another PR? Currently the design can avoid ASCS main service accessing members of characteristics.

bumble/profiles/bap.py Outdated Show resolved Hide resolved
@zxzxwu zxzxwu merged commit b74503d into google:main Dec 11, 2023
51 checks passed
@zxzxwu zxzxwu deleted the ascs branch December 12, 2023 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants