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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -