-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Add a 'ducking' effect to the currently playing track when changing ruleset #28547
Merged
Merged
Changes from 10 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
a567515
Apply a ducking effect to the currently playing track when switching …
nekodex 0d11b2b
Replace manual usages of `AudioFilter` with new ducking methods
nekodex 2ffeb1b
Add fallback behaviour for custom rulesets
nekodex 153138c
Use `null` to disable audio filter instead
nekodex b972632
Change default easing to match prior behaviour
nekodex d29d114
Match prior ducking behaviour
nekodex d948193
Change Duck() to be IDisposable and prevent overlapping usages
nekodex 6813980
Merge branch 'master' into audio-ducking-fx
nekodex 753463f
Fix code style
nekodex 82e4e88
Change overlapping `Duck()` usages to be a noop instead of a throw
nekodex a5077fc
Rename TimedDuck -> DuckMomentarily
nekodex 7f84e37
Merge branch 'music-controller-nullability' into audio-ducking-fx
peppy 0696e2d
Apply nullability to ducking methods
peppy 4528daf
Update resources
peppy ec4623d
Reduce duck length slightly on toolbar ruleset selector
peppy 0d858ce
Change default easings to `In`/`Out` for all ducking operations
peppy 554740a
Adjust ducking API to use a parameters `record`
peppy 31ed0d2
Merge branch 'master' into audio-ducking-fx
peppy 20ba6ca
Add mention of return type for `Duck` method
peppy 717f7ba
Better support multiple concurrent ducking operations
peppy 65418ac
Add basic test coverage
peppy 7efb4ce
Fix multiple disposals resulting in assert being hit
peppy 5907e0d
Make `DuckDuration` non-zero by default
peppy 2bfa03c
Rename test scene file
frenzibyte 0067450
Change volume parameter to `double`
peppy aa36a84
Reduce precision requirement for tests
peppy 3650f3c
Allow multiple ducks with same parameters
peppy 784a9ae
Merge branch 'master' into audio-ducking-fx
frenzibyte 2fcc61e
Merge branch 'master' into audio-ducking-fx
frenzibyte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like cubic easing is too abrupt in its current form. Can you give a plain
In
/Out
a try? It already feels better to me (also a slight reduction to the unduck delay):There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you elaborate on which usage(s) you find to be too abrupt? If it's just the ruleset selector, probably better to change that specific usage rather than the default?
CubicIn
/CubicOut
matches what the previous implementations (DialogOverlay
, etc) used, so they should sound identical to before.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was testing with the ruleset selector, but I think it might be a better default. I'll check the other usages and loop back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think non-cubic sounds better for the dialog cases too. There's not much difference since the duration is so short, but it's a little less sharp.