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

Music bug #12

Closed
Zeprus opened this issue Jun 30, 2022 · 1 comment · Fixed by #13
Closed

Music bug #12

Zeprus opened this issue Jun 30, 2022 · 1 comment · Fixed by #13

Comments

@Zeprus
Copy link
Collaborator

Zeprus commented Jun 30, 2022

If the sound file is shorter than the original only the first x seconds are replaced with the custom sound. Afterwards it returns to playing the rest of the original.
If the sound file is longer than the original it'll cut off and loop after the original sounds length.

@Zeprus
Copy link
Collaborator Author

Zeprus commented Jun 30, 2022

AudioClip.length stays at the original value - needs to be changed to match the new data
Probably should also find a way to remove unneeded Data at the end if the AudioClip is shorter in

AudioClip modClip = AudioStore.audioDict[audioClip.name];

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 a pull request may close this issue.

1 participant