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

Introduce music playlists #216

Open
bitbrain opened this issue Mar 27, 2020 · 0 comments
Open

Introduce music playlists #216

bitbrain opened this issue Mar 27, 2020 · 0 comments

Comments

@bitbrain
Copy link
Owner

Motivation

It is currently very cumbersome to define music playing in a screen. In order to do that you need to start the music, set it to looping and make sure that it fades out before the screen exits, otherwise it is going to continue at the end of a screen.

⭐ Design

// loop through the following music tracks, also fade it out 
// when the screen either exits or fades out
// this should be the default behavior.
context.getAudioManager().loopMusic(Musics.SONG_1, Musics.SONG_2, true);

Requirements

  • overload AudioManager methods to accept asset ids
  • calling loopMusic should stop all other currently playing music
  • when looping method, it should loop from left to right (no shuffle play mode for now)
  • when the screen is faded out with ScreenTransitions use the same fade out interval to fade out the music
  • when the screen is simply changed, stop the music instead
@bitbrain bitbrain added this to Icebox in Core via automation Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Core
  
Icebox
Development

No branches or pull requests

1 participant