GLBasic forum

Main forum => GLBasic - en => Topic started by: Marmor on 2015-Jan-13

Title: Android playmusic/playsound
Post by: Marmor on 2015-Jan-13
After a test i found i cant play some music or sound
on Android with Glb standard version.
Iirc i need to use Android extra for this.
But iirc i need to declare/preload the sound
If i use android extra.
Now my question:

How to play a mp3/ or other sound file whitch
I get over tcp/ip or udp ?
I mean not streaming ala shoutcast i mean
I get a full file, store this and play now.

Title: Re: Android playmusic/playsound
Post by: spacefractal on 2015-Jan-13
For PLAYMUSIC, uses full path (using GETCURRENTDIR$()) to get it working. Its a long time ago bug, a bug im should look and fix that. But its a simple workaround throught. For format. uses ogg, not mp3.
Title: Re: Android playmusic/playsound
Post by: erico on 2015-Jan-13
DonĀ“t forget you cab also play .mod and .it on android too just in case.
Title: Re: Android playmusic/playsound
Post by: quangdx on 2015-Jan-14
Marmor, as spacefractal says.
I found this out over the weekend during a Game Jam,
use have to use the complete path for the file and convert the audio to OGG file format.

for example - PLAYMUSIC "Media/runaway/runaway.ogg",TRUE