Unit GameSoundEngine

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

TGameSoundEngine class.

uses

Overview

Classes, Interfaces, Objects and Records

Name Description
record TSoundInfo This is an internal type used within TGameSoundEngine.
Class TDynArray_1  
Class TGameSoundEngine Easy to use sound manager, using OpenAL, ALUtils and ALSourceAllocator underneath.
Class TMusicPlayer Music player.

Types

TSoundType = Cardinal;
TDynArrayItem_1 = TSoundInfo;
PDynArrayItem_1 = ˆTSoundInfo;
TInfiniteArray_1 = array[0..MaxInt div SizeOf(TDynArrayItem_1)-1]of TDynArrayItem_1;
PInfiniteArray_1 = ˆTInfiniteArray_1;
TDynArrayItemIsSmallerFunc_1 = function (const a, b: TDynArrayItem_1): boolean;
TDynArrayItemIsSmallerFuncByObject_1 = function (const a, b: TDynArrayItem_1): boolean of object;
TDynSoundInfoArray = TDynArray_1;

Constants

MaxSoundImportance = MaxInt;
DefaultSoundVolume = 0.5;
DefaultMusicVolume = 1.0;
DefaultALMinAllocatedSources = 4;
DefaultALMaxAllocatedSources = 16;
stNone = 0;

Description

Types

TSoundType = Cardinal;

This is a unique sound type identifier for sounds used within TGameSoundEngine.

This is actually just an index to appropriate TGameSoundEngine.SoundNames array, but you should always treat this as an opaque type.

TDynArrayItem_1 = TSoundInfo;
 
PDynArrayItem_1 = ˆTSoundInfo;
 
TInfiniteArray_1 = array[0..MaxInt div SizeOf(TDynArrayItem_1)-1]of TDynArrayItem_1;
 
PInfiniteArray_1 = ˆTInfiniteArray_1;
 
TDynArrayItemIsSmallerFunc_1 = function (const a, b: TDynArrayItem_1): boolean;
 
TDynArrayItemIsSmallerFuncByObject_1 = function (const a, b: TDynArrayItem_1): boolean of object;
 
TDynSoundInfoArray = TDynArray_1;
 

Constants

MaxSoundImportance = MaxInt;
 
DefaultSoundVolume = 0.5;
 
DefaultMusicVolume = 1.0;
 
DefaultALMinAllocatedSources = 4;
 
DefaultALMaxAllocatedSources = 16;
 
stNone = 0;

Special sound type that indicates that there is actually none sound. TGameSoundEngine.Sound and TGameSoundEngine.Sound3d will do nothing when called with this sound type.


Generated by PasDoc 0.10.0 on 2008-02-25 00:00:30