Gorilla.Audio.FMOD
Unit Gorilla.Audio.FMOD.pasClasses
- TGorillaFMODAudioManager = class ( TComponent )
Mics. types
- type TGorillaFMODAudioModes = Int64;
TGorillaFMODAudioManager
A component that holds a reference to a FMOD system handle. This class allows simple operations.
Remarks
For more detailed operations use the integrated "SystemObject" property. This allows to request all functionality of FMOD.Ancestors
Members
Fields
- protected FFMOD :
NativeUInt
- protected FSystem :
IGorillaFMODSystem
- protected FSounds :
TThreadList<Gorilla.Audio.FMOD.Intf.Sound.IGorillaFMODSound>
- protected FChannelGroups :
TThreadList<Gorilla.Audio.FMOD.Intf.ChannelGroup.IGorillaFMODChannelGroup>
Methods
- public constructor Create ( AOwner : TComponent ) ;
- public destructor Destroy ( ) ;
- protected function GetSound ( AIndex : Integer ) : IGorillaFMODSound ;
- protected function GetIsPlaying ( ) : LongBool ;
- protected function GetChannelGroup ( AIndex : string ) : IGorillaFMODChannelGroup ;
- protected procedure DoOnSoundNotify ( ASender : TObject; const AItem : IGorillaFMODSound; AAction : TCollectionNotification ) ;
- protected procedure DoOnChannelGroupNotify ( ASender : TObject; const AItem : IGorillaFMODChannelGroup; AAction : TCollectionNotification ) ;
- public procedure Update
(
)
;
Updates FMOD system.
- public procedure Set3DListener
(
const
AAttr :
TGorillaFMOD3DListenerAttr; const
AIndex :
Integer
=
$0
)
;
Adjusts listener 3D settings: position, velocity, ...
- public procedure ClearSounds
(
)
;
Clears all available sound handles.
- public function LoadSoundFromFile
(
const
AFilename :
string
)
: IGorillaFMODSound
;
virtual;
Helper function to load a sound handle by filename.
- public function LoadSoundFromStream
(
const
AStream :
TStream
)
: IGorillaFMODSound
;
overload virtual;
Helper function to load a sound handle from stream.
- public function LoadSoundFromStream
(
const
AMemStream :
TMemoryStream
)
: IGorillaFMODSound
;
overload virtual;
Helper function to load a sound handle from memory stream.
- public function PlaySound
(
AIndex :
Integer; AChannelGroup :
IGorillaFMODChannelGroup
=
nil
; const
APaused :
LongBool
=
False
)
: IGorillaFMODChannel
;
overload;
Helper function to play a sound sample by index.
- public function PlaySound
(
AHandle :
IGorillaFMODSound; AChannelGroup :
IGorillaFMODChannelGroup
=
nil
; const
APaused :
LongBool
=
False
)
: IGorillaFMODChannel
;
overload;
Helper function to play a sound sample by a specific sound handle.
- public procedure Stop
(
AChannel :
IGorillaFMODChannel
)
;
Stops current playback of a specific sound inside of a channel.
- public procedure StopAllChannels
(
)
;
Stops all channels from playback.
- public procedure Pause
(
AChannel :
IGorillaFMODChannel
)
;
Pauses current playback of a specific sound inside of a channel.
- public function AddChannelGroup
(
const
AName :
string
)
: IGorillaFMODChannelGroup
;
Adds a new channel group to fmod and returns that.
- public procedure RemoveChannelGroup
(
AHandle :
IGorillaFMODChannelGroup
)
;
Removes an existing channel group from fmod system.
- public procedure ClearChannelGroups
(
)
;
Clears all available channel groups from fmod system.