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

Show audio mixer identifier strings on the visualiser #4876

Merged
merged 7 commits into from
Nov 10, 2021

Conversation

peppy
Copy link
Sponsor Member

@peppy peppy commented Nov 9, 2021

Found it hard to track what's what. This helps somewhat.

Rationale is that it can no longer work without being in the audio
hierarchy. A `TrackStore` should be used instead.
It doesn't support adjustments and is not in the expected location in
the hierarchy. This only leads to confusion.
Remove broken `Handle` events

These would potentially never be fired due to the fact the work that is
going to fire them is run on the audio thread, before the binding may
have completed.
Also pulls from `DrawableAudioMixer.Name`.
Copy link
Collaborator

@bdach bdach left a comment

Choose a reason for hiding this comment

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

Most changes that aren't dependencies look good, just one minor note.

@@ -18,7 +18,7 @@ public class DrawableAudioMixer : AudioContainer, IAudioMixer
[BackgroundDependencyLoader]
private void load(AudioManager audio)
{
mixer = audio.CreateAudioMixer();
mixer = audio.CreateAudioMixer(Name);
Copy link
Collaborator

@bdach bdach Nov 9, 2021

Choose a reason for hiding this comment

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

Unfortunate that this is timing dependent (will only work if set prior to load). Not sure if it's worth spending the time to add support for arbitrary-timed changes. If we had initialisers then we could use that to make sure it's not an issue ever but alas...

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

Not sure it matters too much. Very rare you'd be setting the name of a drawable at any point after construction.

@pull-request-size pull-request-size bot added size/M and removed size/L labels Nov 10, 2021
@peppy peppy merged commit 2ecb942 into ppy:master Nov 10, 2021
@peppy peppy deleted the mixer-identifiers branch November 18, 2021 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants