CatchSound from raw sampledata

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

CatchSound from raw sampledata

Post 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