android libgdx sound plays no longer than 5 seconds

Anything libgdx related goes here!

android libgdx sound plays no longer than 5 seconds

Postby ErosLove » Sun Sep 15, 2019 4:36 pm

My sound file is mp3, 10 seconds long, 236kb size.

I've got my menu screen and in constructor:

Code: Select all
menuSound1 = game.assetManager.manager.get("data/some-sound.mp3");
menuSound1.play();


On desktop test is good - 10 seconds long, but when i do test on my android device - sound plays only 5 secs. I've tried .wav, but it plays 5 seconds too.

What could be the problem?
ErosLove
 
Posts: 5
Joined: Tue Dec 12, 2017 11:31 am

Re: android libgdx sound plays no longer than 5 seconds

Postby evilentity » Sun Sep 15, 2019 9:54 pm

If something is long its music not sound.
Looking for a freelancer? PM me!
Check out libgdx discord server!
evilentity
 
Posts: 4854
Joined: Wed Aug 24, 2011 11:37 am


Return to Libgdx

Who is online

Users browsing this forum: MSN [Bot] and 1 guest