Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Paul Smith

Pages: 1 ... 5 6 [7] 8
GLBasic - en / Re: Android Sound/Music again
« 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.

GLBasic - en / Re: Android Sound/Music again
« on: 2014-Aug-06 »
Looks like the libmikmod created by glbasic is doing the work, tried .IT on my kids cheap tablet(running jelly bean)
only android default audio player installed and that works. I did notice a click in the sound playback every 2sec but its a slow device.

I personally use Xmp Mod Player by Claudio Matsuoka always being updated

GLBasic - en / Re: Android Sound/Music again
« on: 2014-Aug-05 »
Just tested .IT and that works on Android.

Noticed that my sound test project is taking longer and longer to transfer/install to my phone, then i noticed the apk files size 51mb.
dropped it into winrar and found all my deleted test samples files still there.
At least I now know that the project media folder is just copied over and added to the last compile.

GLBasic - en / Re: Android Sound/Music again
« on: 2014-Aug-05 »
tested Sound/music on android.
all working perfectly.

Interesting that most forum users recommends mono except erico, I found mono ogg's pop every second on all my devices no matter what sample rate/bit rate. stereo works perfectly at all standard bit rates and quality settings tested

also I read that MOD files work but not .xm or .s3m, I've thrown all 3 at glbasic and all work on android ( not tried .IT )

Thanks Again

GLBasic - en / Re: Android Sound/Music again
« on: 2014-Aug-04 »
thanks for the advice.

feel free to delete or move this post, I must have clicked wrong tab, Sorry.

GLBasic - en / Android Sound/Music again
« on: 2014-Aug-04 »
I know this has come up a lot in the forums, Ive read nearly every post in the search but no joy.
Ive tried ogg in mono 8kh 11 22 etc all encoded with audacity for music, no sound on 3 different android devices
ive tried wav mono for sound effects still no sound, all work with windows (mp3 replaced ogg).

anyone got a working test project that works on android.

I Know MrTAToads ocean loader runs from the playstore, but is it using Standard glbasic or Android extra (which ive not installed/read instructions yet )

hopefully some one can give me pointers on what i missing

cheers all

GLBasic - en / Re: reading data values
« on: 2014-Jul-13 »
Cheers erico for taking the time to explain this, Had an idea on the working but not the syntax structure.

GLBasic - en / Re: reading data values
« on: 2014-Jul-13 »
Thanks for putting the Books online, will give them a read shortly. cant believe its Free.

arrays may be the the best option, but I have zero experience using them, i'm old fashioned and still use old programming techniques
with new bits added once I understand them.

GLBasic - en / Re: reading data values
« on: 2014-Jul-12 »
excellent, cant wait to read it when its available.

GLBasic - en / Re: reading data values
« on: 2014-Jul-12 »
couldn't get it working with it in a function( not you just my poor programming skills)
but your example made me understand it just like doing the same thing on a Amstrad CPC.
so I came up with this

GLOBAL amount, s
DATA 3, 3, 5, 5, 8, 1, 3, 9, 8, 0, 5, 9, 3, 9, 4, 1, 1, 0, 9, 4, 3, 0, 2, 2, 8, 4 // will have 255 values

amount = 12


FOR t = 1 TO amount
PRINT s,100,100

easy when you start to understand, Now doubt I'll be back when i forget how SHOWSCREEN works.  hehe

Just off topic MrTAToad is it you who wrote the GLBasic Programmers Reference Guide? if so do you still sell this and how much?

thanks for the help


GLBasic - en / reading data values
« on: 2014-Jul-12 »
Hi all
Never had to  use DATA storage in my code so far, however now i need to store 255 static  values between 0 and 9
i also need to  read the value at different positions e.g. position 10 = 0 or position 220 = 6
I've looked at help file and examples for data,array etc (some to complicated for me)
came up with this test

DATA 3, 3, 5, 5, 8, 1, 3, 9, 8, 0, 5, 9, 3, 9, 4, 1, 1, 0, 9, 4, 3, 0, 2, 2, 8, 4 // will have 255 values

PRINT a, 100,100

this will read the numbers in order
have no idea how to make it go to postion 50 or 12 and read data.

Anyone have any better ways, or  pointers


Cheers Kanonet for the Example.

 I've tested your code and it works proving it was my code.
Ive just got my code working, and what I found was if I used GRABSPRITE in a  FOR/NEXT then it didn't work
but If i used WHILE TRUE/WEND then it did, not sure why.
hopefully I'll have time to finish my program tonight

Never Had a problem with grabsprite in 2D windows, Just started messing with 3D and doing tricks that look quite technical but again just illusions. once this bit is figured out I'll upload this part ( old school demo effect ).
If worst comes to worst then I may have to SAVEBMP Then loadsprite. 

GLBasic - en / Using 3D and GRABSPRITE problem
« on: 2014-Jun-16 »
Hi All,

I'm having problems with GRABSPRITE, If I draw a 3D object in the centre of the screen and use  GRABSPRITE then all is OK
but if I do a for next loop 5x and rotate the object + grab 5 sprites then only the first one works.
Ive printed text across the object to prove  that GRABSPRITE is working and it is
if i //grabsprite  then the object turns so that OK
It grabs the whole screen but I know it  works as this is how i written and a 2D unlimited sprites demo.

Any Ideas?

 FOR t = 1 TO 5
X_MAKE3D 1, 50, 45
PRINT t, 400, 300
xxx = xxx + 5
//yyy = yyy + 0.5
X_CAMERA 100 / 20, 0, 0, 0, 0, 0
X_ROTATION xxx, xxx , xxx, zzz
//IF xxx > 360 THEN xxx = 0
//X_SPOT_LT -1, 0, 0,0,50, 0,0,0,90
GRABSPRITE t, 0, 0, 800, 600
t = 0
ZOOMSPRITE t, 100, 100, 1.1, 1.1
t = t +1
IF t = 5 THEN t = 0

GLBasic - en / Re: Playmusic on Android?
« on: 2011-Oct-09 »
Sorted.Ogg encoder keeps encoding to stereo.selected mono 44.1k and tested ok

Pages: 1 ... 5 6 [7] 8