Android Sound/Music again

Previous topic - Next topic

erico

#15
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!!!

MrPlow

In words of lego movie - "Everthing is Awesome!"
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Paul Smith

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 RYZEN 7,RTX 3060TI

spicypixel

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.

erico

As I tested, works with Android on standard GLB (no extras), it dosen´t work on windows.
I can´t test IOS though.

spacefractal

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.

Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

ketil

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."

spacefractal

#22
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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/