Returns: An audio sample object
length is the number of samples to allocate for the sample. hertz is the frequency in samples per second (hz)
the audio sample will be played. format should be one of:
Format | Description |
---|---|
SF_MONO8 | Mono unsigned 8 bit |
SF_MONO16LE | Mono signed 16 bit little endian |
SF_MONO16BE | Mono signed 16 bit big endian |
SF_STEREO8 | Stereo unsigned 8 bit |
SF_STEREO16LE | Stereo signed 16 bit little endian |
SF_STEREO16BE | Stereo signed 16 bit big endian |
Returns: An audio sample object that references an existing block of memory
The memory referenced by a static audio sample is not released when the audio sample is deleted.
format should be one of:
Format | Description |
---|---|
SF_MONO8 | Mono unsigned 8 bit |
SF_MONO16LE | Mono signed 16 bit little endian |
SF_MONO16BE | Mono signed 16 bit big endian |
SF_STEREO8 | Stereo unsigned 8 bit |
SF_STEREO16LE | Stereo signed 16 bit little endian |
SF_STEREO16BE | Stereo signed 16 bit big endian |
Returns: An audio sample object
Module | brl.audiosample |
Version | 1.02 |
Author | Mark Sibly |
License | Blitz Shared Source Code |
Copyright | Blitz Research Ltd |
Modserver | BRL |