为什么我无法在 libgdx 上播放完整歌曲

why i can't play the full song on libgdx

我有这个音轨,但我无法全部播放。它总是首先播放曲目,如 5 秒,然后停止。应该是63秒。

Sound sound;
@Override
public void create() { 
  soundback=Gdx.audio.newSound(Gdx.files.internal("background.wav"));
  soundback.play();
}

然而,libgdx Sound class is for small sounds that are used many times even at the same time over each other. Music 用于更长的声音,一次只播放一个,例如背景中的歌曲。

Music music = Gdx.audio.newMusic(Gdx.files.internal("data/mymusic.mp3"));
music.play();