Home Units Hierarchy Routines All identifiers

Class unaBassSample

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaBassSample = class(unaBassConsumer)

Description

Provides interface for BASS sample support.

Requires BASS library (bass.dll)

Hierarchy

Overview

Methods

Public function createSample(buf: pointer; len: unsigned; freq, max, flags: DWORD; chans: DWORD = 0): bool;
Public function get_info(out info: BASS_SAMPLE): bool;
Public function load(buf: pointer; len: DWORD; maxOver: DWORD = 16; flags: DWORD = BASS_SAMPLE_OVER_VOL): bool; overload;
Public function load(const fileName: wString; offset: DWORD = 0; maxLength: DWORD = 0; maxOver: DWORD = 16; flags: DWORD = BASS_SAMPLE_OVER_VOL): bool; overload;
Public function play(): HCHANNEL;
Public function play3D(const pos, orient, vel: BASS_3DVECTOR): HCHANNEL;
Public function play3DEx(const pos, orient, vel: BASS_3DVECTOR; start: DWORD; freq, volume: Integer; loop: bool): HCHANNEL;
Public function playEx(start: DWORD; freq, volume, pan: Integer; loop: bool): HCHANNEL;
Public function set_info(const info: BASS_SAMPLE): bool;
Public function stop(handle: HSAMPLE): bool;
Protected procedure freeResources(); override;
Protected procedure sample_free();

Description

Methods

Public function createSample(buf: pointer; len: unsigned; freq, max, flags: DWORD; chans: DWORD = 0): bool;
 
Public function get_info(out info: BASS_SAMPLE): bool;
 
Public function load(buf: pointer; len: DWORD; maxOver: DWORD = 16; flags: DWORD = BASS_SAMPLE_OVER_VOL): bool; overload;
 
Public function load(const fileName: wString; offset: DWORD = 0; maxLength: DWORD = 0; maxOver: DWORD = 16; flags: DWORD = BASS_SAMPLE_OVER_VOL): bool; overload;
 
Public function play(): HCHANNEL;
 
Public function play3D(const pos, orient, vel: BASS_3DVECTOR): HCHANNEL;
 
Public function play3DEx(const pos, orient, vel: BASS_3DVECTOR; start: DWORD; freq, volume: Integer; loop: bool): HCHANNEL;
 
Public function playEx(start: DWORD; freq, volume, pan: Integer; loop: bool): HCHANNEL;
 
Public function set_info(const info: BASS_SAMPLE): bool;
 
Public function stop(handle: HSAMPLE): bool;
 
Protected procedure freeResources(); override;
 
Protected procedure sample_free();
 

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09