Skip to content

Conversation

@aLagoG
Copy link

@aLagoG aLagoG commented Feb 14, 2023

Added get_audio_device_ids_for_scope which returns devices that are listed under a specific scope instead of just global and get_audio_device_supports_scope which checks if a specific devices has any channels for a scope.

This is basically a cleanup of #94

Copy link
Member

@simlay simlay left a comment

Choose a reason for hiding this comment

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

Sorry for the (very) late review. As a person with merge rights to a repo, I should be watching it on github.

I think this is pretty good. It's tough to tell from the github view but I think this is a non-breaking change. I'll test it out locally and merge it.

Comment on lines +189 to +195
macro_rules! try_status_or_return {
($status:expr) => {
if $status != kAudioHardwareNoError as i32 {
return Err(Error::Unknown($status));
}
};
}
Copy link
Member

Choose a reason for hiding this comment

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

Given that you're only using this macro once, declaration and use makes it a bit harder to understand. Let's just use the if status != ... { return Err(...)} What do you think? oh I see, this was here before.

@zertosh
Copy link

zertosh commented Oct 13, 2023

Thanks @simlay! Can I bug you for a release with this please?

@simlay
Copy link
Member

simlay commented Oct 14, 2023

Thanks @simlay! Can I bug you for a release with this please?

#105 just waiting for CI to pass.

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.

3 participants