Hello,
I am having trouble getting the PLAYMUSIC command on my HTC Flyer Android tablet. I've tried both MP4 and OGG formats but haven't had any luck getting it to work. Any ideas?
Thank you.
did you properly put the file names case sensitive?
Read the logfile.
It magically started working the second time I built it.
What am I looking for in the log file?
// 10.118 - new setup required!
// New platform:
// Caanoo (GamePark Holding device)
// Get one here: http://www.gp2x.de/shop/
// Editor:
// New command: Edit/Goto line... (Ctrl+L)
// New command: View/Show line numbers
//
// iPhone:
// iCade detects QUERTZ and AZERTY keyboards.
// INKEY$ works with attached BT keyboards.
// Core:
// HIBERNATE did not sleep on WebOX, iOS and Android
// because of acceleration values.
// PLATFOMRINFO$("DEVICE") extended for WebOS devices.
// 10.113
// Core:
// DIMDEL bug was fixed. DIMDEL for multi-arrays reanabled.
// iPhone:
// iCade, iTouchPad, Atari Arcade support added.
// -pair device
// -toggle to US keyboard settings in iOS
// -run your App, then press one button on iCade
// -GETNUMJOYSTICK() returns "2" now.
// -GETJOYX(1), GETJOYY(1) and GETJOYBUTTON(1,n) to get status.
// 10.109
// WebOS:
// Support for HP Touchpad added.
// Core:
// ISSOUNDPLAYING() failed for high numbers. (GENSOUND() IDs i.e.)
// 10.106
// Core:
// NETWEBGET$ failed for small buffers.
// SETMOUSE works with SETORIENTATION.
// bugfix: DIMPUSH to a type array could have caused a crash.
// Dramatical speedup for DIMPUSH/DIMDEL. (non-required internal REDIM dropped).
//
// Android:
// Multitouch support added.
// 10.090
// Compiler:
// PROTOTYPE can handle string functions.
// Can assign types when declaring:
// LOCAL foo as Tfoo = bar
// Core:
// CODELINE$() had double ".gbas" attached.
// SOCK_CLOSE for UDP didn't really close the socket.
//
// iPhone:
// X_WORLD2SCREEN is corrected!
// 10.084
// Core:
// GETSCRENSIZE returns image size if USESCREEN is used.
// 10.068
// WebOS:
// New platform "Palm-Pixi" for 1.4.5 devices
// (especially for Palm Pixi).
// Code is slightly slower than optimized code for Pre/Veer.
// GRABSPRITE works properly, now (slight slowdown, though).
// 10.057 *** RELEASE V10 ***
// WebOS:
// Bugfix for MOUSESTATE.
//
// Android:
// NETWEBEND works.
// ...
LOL, sorry - I was not clear enough.
I meant the log file of the android device.
In GLBasic/Compiler/platform/android/bin, there's a file: "_logview.bat" (I hope). When you start that, it displays the log of the device and the GLBasic App.
Can you post that here?
The contents of the logview.bat is:
@ECHO OFF
set HERE=%~dp0
set ANDROIDSDK=%HERE%..\android-sdk-windows
set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_24
set PATH=%JAVA_HOME%\bin;%PATH%
"%ANDROIDSDK%\platform-tools\adb.exe" shell logcat glbasic:I SDL:I *:S
Thanks Kitty, thought I was losing my mind there for a second. :)
Just got the new Sony Ericsson Arc S phone.2.3.4,and tested a few commands
I'm having problems with PLAYMUSIC
no sound with MP3
no sound with MP4( speaker turns on just about hear white noise when close to ear )
music mixed with junk with OGG
tried a few compression rates
Any Ideas?
here a copy of my log
@ECHO OFF
:: install Android SDK, Android NDK
:: install JDK
set HERE=%~dp0
set ANDROIDSDK=%HERE%..\android-sdk-windows
set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_24
set PATH=%JAVA_HOME%\bin;%PATH%
"%ANDROIDSDK%\platform-tools\adb.exe" shell logcat glbasic:I SDL:I *:S
IF "%NOPAUSE%"=="" PAUSE
Sorted.Ogg encoder keeps encoding to stereo.selected mono 44.1k and tested ok