SoundFromBuffer ( slot, Byref aBuf, aLen, aVol )

Creates audio in a sound slot using the data stored in aBuf which should be signed 16-Bit samples in system byte order.

Note:
aLen is the Length of the sound data in bytes
aVol is the volume which should be 0 to 128

Example:
Dim a[512]
SoundFromBuffer ( 0, a, 512, 30 )