Author Topic: GLBasic und Android  (Read 7383 times)

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3949
    • View Profile
    • Space Fractal
Re: GLBasic und Android
« Reply #15 on: 2015-Mar-01 »
For MUSIC and mightbeen SOUND, make sure to add GETCURRENTDIR() to the load commands. Its a little years old bug, im thinks im should fix that before AE2.9 release (if im do). Its a tiny bug really. For sound im uses 22khz mono wav for sound.

SETORIENTATION diddent work correctly in stock glbasic and is finally fixed and corrected by Android Extras (automatic, no addidation code required). For Android, its better to use androidmanifest.xml to declare the orientation, and let the system do the orientation job (such as "sensorLandscape").

Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation and The beagle Jam.

Offline Worebu

  • Mr. Polyvector
  • ***
  • Posts: 201
  • Seit gemoint liebe Gemeinde
    • View Profile
Re: GLBasic und Android
« Reply #16 on: 2015-Mar-02 »
OK, THX, i try it.
Intel I5 9600 - RTX 2080 Super, WaKü, 32GB RAM, 1x 512gb + 1x 1Gb NVRAM,  1x4TB + 1x1TB HD

Offline Worebu

  • Mr. Polyvector
  • ***
  • Posts: 201
  • Seit gemoint liebe Gemeinde
    • View Profile
Re: GLBasic und Android
« Reply #17 on: 2015-Mar-04 »
Sound funktioniert nicht, nur auf dem PC. Nach der Übertragung auf das Pad ... toten Stille.
Intel I5 9600 - RTX 2080 Super, WaKü, 32GB RAM, 1x 512gb + 1x 1Gb NVRAM,  1x4TB + 1x1TB HD

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4387
    • View Profile
    • FUED
Re: GLBasic und Android
« Reply #18 on: 2015-Mar-04 »
OGG files may not work on PC, but here MP3 will do fine.
OGG is best for music on android.
Like I said, you could also use MOD or impulse tracker files.

Make sure you use full path when loading assets for android.
Here is a thread with an example I posted long ago.
Take a look at the code, it should help you.
Load your waves the same way.

Look into the first page what my setting for ogg file is.
For wave sounds, I´m using:
PCM S16 (16bit pcm)
mono
all sample rate seems to work fine here.

http://www.glbasic.com/forum/index.php?topic=9933.msg86777#msg86777
« Last Edit: 2015-Mar-04 by erico »

Offline Worebu

  • Mr. Polyvector
  • ***
  • Posts: 201
  • Seit gemoint liebe Gemeinde
    • View Profile
Re: GLBasic und Android
« Reply #19 on: 2015-Mar-09 »
OK, Teste ich aus. Danke.
Intel I5 9600 - RTX 2080 Super, WaKü, 32GB RAM, 1x 512gb + 1x 1Gb NVRAM,  1x4TB + 1x1TB HD