Description | Hierarchy | Fields | Methods | Properties |
type unaBassSample = class(unaBassConsumer)
Provides interface for BASS sample support.
Requires BASS library (bass.dll)
function createSample(buf: pointer; len: unsigned; freq, max, flags: DWORD; chans: DWORD = 0): bool; |
|
function get_info(out info: BASS_SAMPLE): bool; |
|
function load(buf: pointer; len: DWORD; maxOver: DWORD = 16; flags: DWORD = BASS_SAMPLE_OVER_VOL): bool; overload; |
|
function load(const fileName: wString; offset: DWORD = 0; maxLength: DWORD = 0; maxOver: DWORD = 16; flags: DWORD = BASS_SAMPLE_OVER_VOL): bool; overload; |
|
function play(): HCHANNEL; |
|
function play3D(const pos, orient, vel: BASS_3DVECTOR): HCHANNEL; |
|
function play3DEx(const pos, orient, vel: BASS_3DVECTOR; start: DWORD; freq, volume: Integer; loop: bool): HCHANNEL; |
|
function playEx(start: DWORD; freq, volume, pan: Integer; loop: bool): HCHANNEL; |
|
function set_info(const info: BASS_SAMPLE): bool; |
|
function stop(handle: HSAMPLE): bool; |
|
procedure freeResources(); override; |
|
procedure sample_free(); |
function createSample(buf: pointer; len: unsigned; freq, max, flags: DWORD; chans: DWORD = 0): bool; |
|
function get_info(out info: BASS_SAMPLE): bool; |
|
function load(buf: pointer; len: DWORD; maxOver: DWORD = 16; flags: DWORD = BASS_SAMPLE_OVER_VOL): bool; overload; |
|
function load(const fileName: wString; offset: DWORD = 0; maxLength: DWORD = 0; maxOver: DWORD = 16; flags: DWORD = BASS_SAMPLE_OVER_VOL): bool; overload; |
|
function play(): HCHANNEL; |
|
function play3D(const pos, orient, vel: BASS_3DVECTOR): HCHANNEL; |
|
function play3DEx(const pos, orient, vel: BASS_3DVECTOR; start: DWORD; freq, volume: Integer; loop: bool): HCHANNEL; |
|
function playEx(start: DWORD; freq, volume, pan: Integer; loop: bool): HCHANNEL; |
|
function set_info(const info: BASS_SAMPLE): bool; |
|
function stop(handle: HSAMPLE): bool; |
|
procedure freeResources(); override; |
|
procedure sample_free(); |
|
(c) 2012 Lake of Soft