Audio Samples

BlitzMax Forums/BlitzMax Programming/Audio Samples

splinux(Posted 2006) [#1]
Is it possible to BMax to load 44.1khz audio samples?
I've tryied to load them, and they work, but if i put in a variable this(which should give the length in time of the sample):
totaltime=numofsamples/44100
the time isn't correct.


Grey Alien(Posted 2006) [#2]
does it help if you declare totaltime and numofsmaples as floats instead of ints?


splinux(Posted 2006) [#3]
I've declared them as float.
I'm using very short sounds.

The sound length is about 0.6, 0.61 seconds, but the result isn't so.


splinux(Posted 2006) [#4]
It now seems to be working.
I don't know why, however in the last 30 minutes i've been having troubles with the pc and the audio programs, so maybe the error was there.