Gorilla.Controller.Input.AudioManager
Unit Gorilla.Controller.Input.AudioManager.pasClasses
- TGorillaAudioMapItem = class ( TCollectionItem )
- TGorillaAudioMap = class ( TOwnedCollection )
- TGorillaAudioManagerController = class ( TComponent )
Enumerations
- enum TGorillaAudioMapKind = ( HotKeyMap, CoordinatesMap ) ;
Constants
TGorillaAudioMapKind
enum TGorillaAudioMapKind = (
HotKeyMap, CoordinatesMap
) ;
Defines if an audio map entry shall be checked for a hotkey or if the character nearby a coordinate.
TGorillaAudioMapItem
Ancestors
Members
Fields
- protected FName :
string
- protected FKind :
TGorillaAudioMapKind
- protected FSoundID :
Integer
- protected FHotKey :
TGorillaCharacterControllerHotKey
- protected FStates :
TGorillaCharacterControllerStates
- protected FCoords :
TPoint3D
- protected FRadius :
Single
Methods
- protected function GetDisplayName ( ) : string ; override;
- protected procedure SetDisplayName ( const AValue : string ) ; override;
- public procedure Assign ( Source : TPersistent ) ; override;
Properties
TGorillaAudioMap
Ancestors
TGorillaAudioManagerController
Ancestors
Members
Fields
- protected FAudioManager :
TGorillaFMODAudioManager
- protected FChannelMap :
TGorillaChannelMap
- protected FMap :
TGorillaAudioMap
- protected FOnChannelQuery :
TOnAudioManagerControllerChannelQuery
- protected FOnPlayback :
TOnAudioManagerControllerChannelNotify
- protected FOnAddToPlaylist :
TOnAudioManagerControllerChannelNotify
Methods
- public constructor Create ( AOwner : TComponent ) ;
- public destructor Destroy ( ) ;
- protected procedure SetMap ( const AValue : TGorillaAudioMap ) ; virtual;
- protected procedure Notification ( AComponent : TComponent; Operation : TOperation ) ; override;
- public procedure AfterConstruction ( ) ; override;
- public procedure AddHotKeyMapping
(
AName :
string; ASoundID :
Integer; AHotKey :
TGorillaCharacterControllerHotKey; AStates :
TGorillaCharacterControllerStates
)
;
virtual;
Adds a sound mapping entry for a pressed hotkey
- public procedure AddCoordinateMapping
(
AName :
string; ASoundID :
Integer; ACoord :
TPoint3D; ARadius :
Single
)
;
virtual;
Adds a sound mapping at a certain coordinate in 3D space with a specific radius.
- public procedure DispatchSound
(
AHotKey :
TGorillaCharacterControllerHotKey; AStates :
TGorillaCharacterControllerStates; A3DPos :
TPoint3D
)
;
virtual;
The dispatcher method nees the current hotkey and a 3d character position. It will scan all available mappings to playback the first sound it finds.