Android Java LibGDX Music, Sound -
Android Java LibGDX Music, Sound -
what difference between sound , music types in libgdx?
music gamemusic = gdx.audio.newmusic(gdx.files.internal("sound/gamemusic.mp3")); gamemusic.play();
this worked both on desktop , android one
sound gamemusic = gdx.audio.newsound(gdx.files.internal("sound/gamemusic.mp3")); gamemusic.play();
this worked on desktop doesnt play sound on android.
music streamed, while sound loaded memory.
it said here:
https://github.com/libgdx/libgdx/wiki/sound-effects
https://github.com/libgdx/libgdx/wiki/streaming-music
and according question on so, must wait frame before can play sound straight after loading: no sound in android application libgdx
java android libgdx music
Comments
Post a Comment