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

Added option to only have slider sounds play during manipulation #10081

Merged
merged 2 commits into from
Jul 14, 2021

Conversation

RogPodge
Copy link
Contributor

Overview

Added option to only play slider sounds during manipulation. When enabled, a flag is flipped on when the slider is being manipulated, which allows the sounds to play. This ensures that the sound only plays during manipulation, and not when the value is modified via scripts.

Changes

@RogPodge RogPodge requested a review from Zee2 July 14, 2021 21:33
@RogPodge RogPodge changed the title Slider sound fix Added option to only have slider sounds play during manipulation Jul 14, 2021
@Zee2
Copy link
Contributor

Zee2 commented Jul 14, 2021

Is it possible to write tests for this?

@RogPodge
Copy link
Contributor Author

RogPodge commented Jul 14, 2021

Is it possible to write tests for this?

Seems a tad cumbersome since the specific sounds that are played are all private. Since the sounds are also OneShot's too, I imagine that it'd be a bit flakey to tell if the audio source is currently playing on the exact frame we expect it to.

@RogPodge
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@microsoft microsoft deleted a comment from azure-pipelines bot Jul 14, 2021
@RogPodge
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@RogPodge RogPodge merged commit e140bf2 into microsoft:main Jul 14, 2021
@polar-kev polar-kev added this to the MRTK 2.7.3 milestone Nov 22, 2021
@polar-kev polar-kev modified the milestones: MRTK 2.7.3, MRTK 2.x future Dec 5, 2021
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.

SliderSounds plays sounds when the slider position is updated by the system
4 participants