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

[FEATURE REQUEST] Play multiple tracks at the same time synced #9

Open
niom opened this issue Dec 17, 2024 · 2 comments
Open

[FEATURE REQUEST] Play multiple tracks at the same time synced #9

niom opened this issue Dec 17, 2024 · 2 comments

Comments

@niom
Copy link

niom commented Dec 17, 2024

What I would like to do is to have my background music split in to multiple tracks and then play the tracks in sync. Each track should have an ability to fade in or out or just tune down. Kind like mixing the tracks on the fly together during the game play.

For example when a track with a hard bass beat could be toned down when you open a menu or if you want to pace your game for more easier phase and then tune the hard bass beat back when the combat starts.

Does something like this make sense?

I also feel that this is a quite a major feature.

@man572142
Copy link
Owner

man572142 commented Dec 18, 2024

Thank you for your idea!
Yes, it makes perfect sense, and in fact, that's one of the main reasons people use audio middlewares like FMOD and Wwise. Both provide this kind of "Interactive Music" feature and do an incredible job at it.

I’ve been considering implementing this feature in the future, but as you mentioned, it’s quite a major feature that would take significant time to develop. Unfortunately, I can’t provide an estimate at the moment.

That said, there are some new APIs coming out later this month that can help with scheduling playback and syncing multiple tracks. You could cache the returning value (IAudioPlayer) of each Play() methods and control them as needed.

To be honest, Unity already supports this feature, and I’ve just connected it with our system. Therefore, it still requires a lot of manual coding to build the logic, but if your idea isn’t too complex, it might be worth a try. Let me know if you’re interested and would like an example. Thanks!

@niom
Copy link
Author

niom commented Dec 18, 2024

Cheers that it made sense.

Years back the team I was working with used Fabric for the audio management but that was years and years back. Now that I activated again I stumbled upon your neat and easy asset. I did also considered FMOD and WWise but they felt little over kill for a hobby project.

Yeah usually the advanced features are more time consuming to develop. I totally feel you on this matter. Best part here is that I'm not in a hurry nor is this a mandatory feature. Just felt that something this easy and nice asset could use this kind of advanced feature.

As I said I'm not in a hurry. Just nearing a playable alpha release of a simple shooting game. This being a one man hobby project could take years to complete and more to polish. I definitely keep following this project since it's more than promising.

Thank you for the workaround idea. I'll keep it in mind if I need this kind of a feature in the near future.

Keep up the good work!

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

No branches or pull requests

2 participants