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

Impl Deref for newtypes #71

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Impl Deref for newtypes #71

wants to merge 9 commits into from

Conversation

GitGhillie
Copy link
Collaborator

Wanted to get opinions on this:
On FmodStudio it's a clear improvement in my eyes.
But on AudioSource it gets a bit hairy (internally, user-facing looks ok) because AudioSinkPlayback contains some function members with the same name as the ones in EventInstance. So you still need the .0 syntax in some places (internally).

GitGhillie and others added 9 commits February 12, 2024 15:14
The key inputs in the audio control and parameter adjustment functions have been updated. They've been changed to use ButtonInput instead of Input, and the specific KeyCode names have been adjusted to the recently updated KeyCode identifications.
Comment on lines 75 to 77
fn stop(&self) {
self.event_instance.stop(StopMode::AllowFadeout).unwrap();
self.0.stop(StopMode::AllowFadeout).unwrap();
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here is an example of what I was talking about in the PR description

@Salzian
Copy link
Owner

Salzian commented Mar 7, 2024

Can you elaborate what your initial goal was with this PR?

@GitGhillie
Copy link
Collaborator Author

Can you elaborate what your initial goal was with this PR?

Mainly to reduce the amount of code the user needs to write. This is easiest to see in the diff of the parameters example

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.

None yet

2 participants