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

basic broadcast assistant functionality #529

Merged
merged 7 commits into from
Aug 12, 2024
Merged

Conversation

barbibulle
Copy link
Collaborator

Adds some basic broadcast assistant support to the auracast.py app.
This is still very basic, and might not completely work yet, but since it includes a small reorganization of some of the profile implementation files, I'd like to merge this soon so that the branch doesn't end up with conflicts later on if changes are made to the reorganized profiles.

@barbibulle barbibulle requested a review from zxzxwu August 10, 2024 01:32
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for

"""LE Audio - Audio Stream Control Service"""
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we are going to split Basic Audio Profile into different services, I think the directory name profiles will become not so precise? Though many other services have been there for some time.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's Ok for the profiles directory to contain files that represent entire profiles (ex: tmap.py or bap.py), just one service (ex: bass.py, battery_service.py) or even just multi-profile shared definitions (ex: le_audio.py). Some profiles share elements, so it's convenient to break those out, and some profiles are large, so splitting them into individual services also makes sense when needed. So the profiles directory is just a container for "implementation and definition files associated with different profiles".

Comment on lines 86 to 87
else:
self.role = None
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 be better to raise an error here? (and make role not optional)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done.

@barbibulle barbibulle merged commit 03c79aa into main Aug 12, 2024
57 checks passed
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