Skip to content

Conversation

@oliviamiller
Copy link
Member

@oliviamiller oliviamiller commented Oct 22, 2025

Audio out component type, tested manually using a modifed simple module example.

@oliviamiller oliviamiller changed the title Audioout RSDK-12151 Audio Out Component Type Oct 22, 2025
/// raw PCM data, pass nullptr if not needed.
/// @param extra Any additional arguments to the method
virtual void play(std::vector<uint8_t> const& audio_data,
std::shared_ptr<audio_info> info,
Copy link
Member Author

Choose a reason for hiding this comment

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

made info a shared pointer so it could be optional by passing a nullptr, unsure if thats the best way to handle

Copy link
Collaborator

Choose a reason for hiding this comment

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

let's use boost::optional for this sort of thing

@oliviamiller oliviamiller marked this pull request as ready for review October 22, 2025 18:45
@oliviamiller oliviamiller requested a review from a team as a code owner October 22, 2025 18:45
@oliviamiller oliviamiller requested review from lia-viam, njooma and stuqdog and removed request for a team October 22, 2025 18:45
Copy link
Collaborator

@lia-viam lia-viam left a comment

Choose a reason for hiding this comment

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

thanks for the PR again, this is pretty close to mergeable

/// raw PCM data, pass nullptr if not needed.
/// @param extra Any additional arguments to the method
virtual void play(std::vector<uint8_t> const& audio_data,
std::shared_ptr<audio_info> info,
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's use boost::optional for this sort of thing

Copy link
Collaborator

@lia-viam lia-viam left a comment

Choose a reason for hiding this comment

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

lgtm, feel free to merge after resolving the conflicts from the overlap with your AudioIn merge

@oliviamiller oliviamiller merged commit f9060c6 into viamrobotics:main Oct 23, 2025
5 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