TweenAccessor for music.class in LibGDX

后端 未结 1 1729
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-18 20:24

I\'ve been wondering: is it possible to use Universal Tween Engine in LibGDX to - for example - change the volume of a song? I wrote my own MusicAccessor with code similar t

相关标签:
1条回答
  • 2021-01-18 21:08

    I personally haven't used Tween Engine myself yet, but I think it might be because Music is actually just an interface.

    There are several implementations for the different backends and different file formats. For example AndroidMusic, GwtMusic, and three more implementations of OpenALMusic (they are all called Music and are located in the com.badlogic.gdx.backends.openal.mp3/ogg/wav packages). You could either register them all with your accessor, or you can use Tween.cast() which I found in the code, but not in the official JavaDoc of the tween engine. It might be only in the latest version.

    0 讨论(0)
提交回复
热议问题