public static void poll ( int delta ) { if ( currentMusic != null ) { SoundStore . get ( ) . poll ( delta ) ; if ( ! SoundStore . get ( ) . isMusicPlaying ( ) ) { if ( ! currentMusic . positioning ) { Music oldMusic = currentMusic ; currentMusic = null ; oldMusic . fireMusicEnded ( ) ; } } else { currentMusic . update ( delta ) ; } } }
Poll the state of the current music . This causes streaming music to stream and checks listeners . Note that if you re using a game container this will be auto - magically called for you .