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

Hand-over unmute parameter #1985

Merged
merged 1 commit into from Dec 6, 2022
Merged

Hand-over unmute parameter #1985

merged 1 commit into from Dec 6, 2022

Conversation

mfudpi
Copy link
Contributor

@mfudpi mfudpi commented Nov 29, 2022

Some device(e.g. the alsa softvol plugin) do not support to be unmuted, if you try so, it will raise an exception and dispose the device.

Microsoft Reviewers: Open in CodeFlow

@ghost ghost added the area-device-bindings Device Bindings for audio, sensor, motor, and display hardware that can used with System.Device.Gpio label Nov 29, 2022
Copy link
Contributor

@raffaeler raffaeler left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Member

@Ellerbach Ellerbach left a comment

Choose a reason for hiding this comment

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

looks good to me s well

/// <returns>A communications channel to a sound device running on Unix.</returns>
public static SoundDevice Create(SoundConnectionSettings settings) => new UnixSoundDevice(settings);
/// <remarks>Some device do not support to be unmuted, if you try so, it will raise an exception and dispose the device. In this case, you should set the unmute parameter to false</remarks>
public static SoundDevice Create(SoundConnectionSettings settings, bool unmute = true) => new UnixSoundDevice(settings, unmute);
Copy link
Member

Choose a reason for hiding this comment

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

This is a binary breaking change against the previous version of the library, which is why the builds in Windows are failing. Could you please instead create a new constructor where the unmute param is not defaulted? That way we won't have the breaking change.

@joperezr joperezr added the Needs: Author Feedback We are waiting for author to react to feedback (action required) label Dec 1, 2022
@ghost ghost removed the Needs: Author Feedback We are waiting for author to react to feedback (action required) label Dec 2, 2022
Copy link
Contributor

@raffaeler raffaeler left a comment

Choose a reason for hiding this comment

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

Thanks, well done

@pgrawehr pgrawehr changed the title hand-over unmute parameter Hand-over unmute parameter Dec 6, 2022
@pgrawehr pgrawehr merged commit f1c9e40 into dotnet:main Dec 6, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-device-bindings Device Bindings for audio, sensor, motor, and display hardware that can used with System.Device.Gpio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants