Author Topic: Android Sound/Music again  (Read 5488 times)

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4202
    • View Profile
    • Portfolio
Re: Android Sound/Music again
« Reply #15 on: 2014-Aug-06 »
Just tested...it works perfectly and the sound/instrument fidelity is perfect too. :booze: :booze: :nw: :nw: :nw:
Here an APK so you give a go on your android device just to savour it... enjoy the music :good:
There is an .IT file by Darkmanwolf.
Then a .MOD file by Allister Brimble.

This is SUPER GREAT NEWS! So much for people babbling about a dead GLBasic on some other nonsense thread :zzz: :nana:

Also...here the code:
Code: GLBasic [Select]
// --------------------------------- //
// Project: MUSIC_TEST
// Start: Wednesday, August 06, 2014
// IDE Version: 12.243


PRINT "TESTING SOME MUSIC ON ANDROID.",100,100
PRINT "TOUCH SCREEN TO START...",100,110

SHOWSCREEN
MOUSEWAIT
SLEEP 250

PRINT "PLAYING -ILLUSION.IT-",100,100
PRINT "COOL UH?",100,110
PLAYMUSIC "Media/illusion.it",TRUE
PRINT "TOUCH SCREEN TO TEST NEXT ONE...",100,120

SHOWSCREEN
MOUSEWAIT
SLEEP 250

PRINT "PLAYING -FULL CONTACT.MOD-",100,100
PRINT "SUPER COOL UH?",100,110
PLAYMUSIC "Media/FullContact.MOD",TRUE
PRINT "TOUCH SCREEN TO QUIT.",100,120

SHOWSCREEN
MOUSEWAIT

EDIT: This is definently worth a new thread to inform people...probably Gernot did not have time to add it to the LOG of latest GLB update...I´m REALLY HAPPY WITH THIS!!!
« Last Edit: 2014-Aug-06 by erico »

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1491
    • View Profile
Re: Android Sound/Music again
« Reply #16 on: 2014-Aug-08 »
In words of lego movie - "Everthing is Awesome!"
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline Paul Smith

  • Mr. Polyvector
  • ***
  • Posts: 109
    • View Profile
Re: Android Sound/Music again
« Reply #17 on: 2014-Aug-08 »
Found the odd .xm .mod file that it wont play, However if you load them in to OpenMPT (modplug tracker) and export it back  .it then they work.
Amstrad CPC 6128, ATARI STE.
Acer  SW5-173 & AMD FX 8350/1050Ti

Offline spicypixel

  • Prof. Inline
  • *****
  • Posts: 646
  • Pixel Artist
    • View Profile
    • SpicyPixel.net
Re: Android Sound/Music again
« Reply #18 on: 2014-Aug-09 »
So does this work with standard GLB for iOS and Android? Or is it Android only with Android Extras?

Is there any way we can get FFT info for Speccy Analysers :D Hoping! lol.
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4202
    • View Profile
    • Portfolio
Re: Android Sound/Music again
« Reply #19 on: 2014-Aug-09 »
As I tested, works with Android on standard GLB (no extras), it dosen´t work on windows.
I can´t test IOS though.

Online spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3626
    • View Profile
    • Space Fractal
Re: Android Sound/Music again
« Reply #20 on: 2014-Aug-09 »
on Windows, there is a Fmod libary project in the Sample Folder, which can play those files. The reason its works on Android is because is uses libmikmod.so, which is included with the Android Build. We just need a similar player for iOS. Then a framework is just needed to pickup the right library to play from.

Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline ketil

  • Mr. Polyvector
  • ***
  • Posts: 117
    • View Profile
Re: Android Sound/Music again
« Reply #21 on: 2014-Sep-02 »
HEKKUS SOUND SYSTEM would work across a lot of platforms.
I did some testing with it a couple of years ago, but not on IOS and Android.
"Sugar makes the world go 'round. Caffeine makes it spin faster."

Online spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3626
    • View Profile
    • Space Fractal
Re: Android Sound/Music again
« Reply #22 on: 2014-Sep-02 »
Homepage is:
http://www.shlzero.com/wordpress/?page_id=170

Its seen the license wont been able to include this with glbasic, but howover we can do a external framework for it and put it as a sample example project. To install the required libs can been done by the user its self (etc tell where the libs needs to been copied too). So this is just a minor issue. Rest of the license is pretty nice.

The sound engine itself take some mb, so not all would been interested in this one (depend on project). But howover its would been nice to possible disable the internal sdlmixer with a glbasi options to a giving platform, if we want to uses a external system like this one. Its look like a very cool sound lib throught, which does anything we needs.
« Last Edit: 2014-Sep-03 by spacefractal »
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.