Audio Samples
BlitzMax Forums/BlitzMax Programming/Audio Samples
| ||
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. |
| ||
does it help if you declare totaltime and numofsmaples as floats instead of ints? |
| ||
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. |
| ||
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. |