Author Topic: Android playmusic/playsound  (Read 1466 times)

Offline Marmor

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 909
  • 96A285CC
    • View Profile
    • my youtube channel
Android playmusic/playsound
« 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.

Thx

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3669
    • View Profile
    • Space Fractal
Re: Android playmusic/playsound
« Reply #1 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.
« Last Edit: 2015-Jan-13 by spacefractal »
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4212
    • View Profile
    • Portfolio
Re: Android playmusic/playsound
« Reply #2 on: 2015-Jan-13 »
DonĀ“t forget you cab also play .mod and .it on android too just in case.

Offline quangdx

  • Mr. Polyvector
  • ***
  • Posts: 233
  • work hard / play hard
    • View Profile
    • Asobi tech
Re: Android playmusic/playsound
« Reply #3 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
Asobi tech - the science of play.
Spare time indiegame developer.