Menu

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.

Show posts Menu

Messages - spudgunjake

#16
Do any one fancy converting this Webcam programme from BLITZMAX I have from a couple of years ago.

It works fine on my pc, just run the demo.exe , If you get a black screen, change the My_Cam = 0 to 1. thats if you have blitzmax.

I Dont have the skill to do the convertion my self but would like to have this working in GLbasic.

souce in the bmx file.

Many thank John.

[attachment deleted by admin]
#17
I thought I would need to use INLINE, I want to convert some old code from BLITZMax to GLBasic.

thanks for the nod.
#18
having trouble with types, can any one help. been right thick. Or is it better to use INLINE function.

I need a pointer to a char in my type,

TYPE My_Test

   *mTargetBuf    
   mWidth
   mHeight
   
ENDTYPE
#19
It does look like VLC does use SDL for its sound support or at least part of it and the problems may be part of SDL Lib., Just a thought.
Please correct me if I am wrong.

include <stdio.h>
#include <stdint.h>
#include <math.h>
#include <stdlib.h>

#include <SDL/SDL.h>
#include <SDL/SDL_mutex.h>
#20
What I have found out is that anything under  8 bit, 22000hz, ISMUSICPLAYING Doesn't like.

My be am making a fuss regarding space, but the I like to keep the App as small as possible.

One thing is, ITunes Both Mac, and Windows play fine. Windows Media plays fine. But VLC clips the end, I wounded if VLC uses the same Lib as
ISMUSCIPLAYING.

The Problem is with ISMUSCIPLAYING function.
#21
I have found by resampling my Wav files, down from 32bit to 24bit, 16bit, 8bit rates  that ISMUSCIPLAYING cuts the end off, and its get worse  further down you go.

Lets say I have a 3 seconds sample at 32bit, its plays fine, but as I decrease the bit from 32 to 24,16 and then 8 the (PLAY) length gets shorter, in other words, 3 seconds sample at 24bit plays only plays 2.8 seconds of the complete 3 seconds length, then 2.6, 2.4 seconds and so on as the sample is converted down to a lower bit. If I was saying in  my sample "mary had a little lamb" I would get some thing like "mary had a little la"  These are rough timings by the way. but you get the point.

I had problem for some time and couldn't understand why it just appeared out of knowhere, may be at some point I resampled my mp3's down to a lower bit rate and converted them into Wav file, then decreasing the bit from 32 to 24 to save space. (May Be.)

I am still looking into why this is, I read somewhere by kitty the sound engine is SDL LIB, but cant find anything on the SDL web site in relation to this problem.

I hope Kitty reads this and hope it may shed some light on some of the problems other people are have or have had in the past with Wav, Mp3 and other media types.

best reagards john.
#23
Its a simple one, Is there any issues with ISMUSICPLAYING on the iphone, Its works perfect when compiled to use on my pc, but when compiled for the iphone is seems to cut the ends of my wav files. some of my wav files have silence at the end which I need.

does the ISMUSICPLAYING.... command look for file length, or does it look for a long length of zeros or something.

or is there a recommended setting for wav files. Bite rate, file type PCM WAVE, I noticed when using goldwave, I can save files under PCM, signed, unsigned, mono and stereo types, whats best, At first I thought its was my MP3 files, so I converted them to Wav as recommended, but with the same results as my last post. 

for some reason if clips the wav files.

the idea looks like this, sorry I cant give you correct code, it would give to much away.

play first wav, wait for it to finish and the play the  second wav, wait for second wav to finshed, loop back to first.

loop:
if   (ISMUSICPLAYING=FALSE)
   PLAYMUSIC "MEDIA\play_FILE.wav"
   goto new_routine
endif
goto loop

new_routine:

if   (ISMUSICPLAYING=FALSE)
   PLAYMUSIC "MEDIA\play_SOMETHING_ELSE.wav"
   goto loop
endif

goro new_routine

You get the basic idea.



#24
mapping a drive letter with VMware to my Mac worked a treat,

thanks John.
#25
I have to try native mp4 and ogg files to night, see I get on, And let every one know, thanks for the replies.
#26
Just remming out all the alphas and just adding a single alpha  -0.999 at the start seemed to work, I do like the code. nice affect Matey. 

I all so tried remming the alpha's and got some strange affects depending which alpha I tried remming.

Hope this helps.




[attachment deleted by admin]
#27
has any one got a list of what can be played with glbasic on a Iphone.
#28
I had problems with samples, but found out that its was some codex on my pc, I uninstalled what I coould find and just have VLC player and media player installed, and it worked fine. I very careful what codex i use, I install ogg codex for windows this morning and my apt some times crashes.  just sures you what can happen.
#29
if you have a example you could send me, with code.
#30
in photoshop, used the magic wand select the area,
invert it and copy, paste the area,
you should now have two images / layers, one been the background, delete the back ground layer, the layer left has a checked background, save that file out as a png, glbasic know what is transperant.  I hope that helps