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

FadeMusicIn always returns the mainMusic channel. #45

Closed
LoiNV83 opened this issue Nov 19, 2024 · 2 comments
Closed

FadeMusicIn always returns the mainMusic channel. #45

LoiNV83 opened this issue Nov 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@LoiNV83
Copy link

LoiNV83 commented Nov 19, 2024

Hello,
I am using your JSAM library and have encountered an issue when calling:
var channelHelper = AudioManager.FadeMusicIn(this.audioLibraryMusic, 3, false);
I noticed that channelHelper always returns the mainMusic channel, even though the music is playing on a different channel.

May I ask if this is a bug, or is it the intended behavior of the function?
I apologize for my English.

Thank you!

@jackyyang09
Copy link
Owner

Hi LoiNV83, this is indeed a bug, it will be fixed in the next release.

For now, you can open up the class AudioManagerInternal.cs, look for the function FadeMusicInInternal and replace
return mainMusic;
with
return helper

@jackyyang09 jackyyang09 added the bug Something isn't working label Nov 20, 2024
@LoiNV83
Copy link
Author

LoiNV83 commented Nov 20, 2024

Thank you for reviewing! I will update the new version when available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants