Local AudioPtr:Short Ptr = Short Ptr(sample.samples) For Local i = 0 To 10000 AudioPtr[i] = Sin(i*3.6)*5000 Next
sample.samples is a byte pointer, so anything you write to it will only be in bytes, so you need to use a short pointer for 16bit sound.
floating point audio is 32bit and not supported by blitzmax audio.