Page 1 of 1

CatchSound from raw sampledata

Posted: Tue Sep 08, 2009 12:07 pm
by Kurzer
A CatchSound() instruction to catch a Sound from a raw waveform would be fine (raw=memoryarray with pure sampledatas and without any waveform-headers).

eg:

Code: Select all

CatchSound(#Sound, Memoryposition, Length, Channles, Khz, Bits, Mode) 
Memoryposition = Position where the raw sampledatas are located
Length = Number of samples to catch
Channles = Number of channles (1,2 / mono, stereo)
Khz = Playbackrate of sound (44.1, 22.0 etc...)
Bits = Resolution of samples (8Bit, 16Bit, 24Bit...)
Mode = hmm, no Idea. Maybe the orientation of sampledatas (big endian / little endian) or so