Main interface to the audio system, allowing access to audio playback via implementation plug-ins. More...
#include
Public Member Functions | |
virtual void | Release ()=0 |
virtual void | SetImpl (Impl::IImpl *const pIImpl, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | LoadTrigger (ControlId const triggerId, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | UnloadTrigger (ControlId const triggerId, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | ExecuteTriggerEx (SExecuteTriggerData const &triggerData, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | ExecuteTrigger (ControlId const triggerId, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | StopTrigger (ControlId const triggerId=InvalidControlId, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | SetParameter (ControlId const parameterId, float const value, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | SetSwitchState (ControlId const switchId, SwitchStateId const switchStateId, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | PlayFile (SPlayFileInfo const &playFileInfo, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | StopFile (char const *const szName, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | ReportStartedFile (CATLStandaloneFile &standaloneFile, bool const bSuccessfullyStarted, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | ReportStoppedFile (CATLStandaloneFile &standaloneFile, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | ReportFinishedEvent (CATLEvent &event, bool const bSuccess, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | StopAllSounds (SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | Refresh (char const *const szLevelName, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | PreloadSingleRequest (PreloadRequestId const id, bool const bAutoLoadOnly, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | UnloadSingleRequest (PreloadRequestId const id, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | ReloadControlsData (char const *const szFolderPath, char const *const szLevelName, SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | AddRequestListener (void(*func)(SRequestInfo const *const), void *const pObjectToListenTo, ESystemEvents const eventMask)=0 |
virtual void | RemoveRequestListener (void(*func)(SRequestInfo const *const), void *const pObjectToListenTo)=0 |
virtual void | ExternalUpdate ()=0 |
virtual char const * | GetConfigPath () const =0 |
virtual IListener * | CreateListener (char const *const szName=nullptr)=0 |
virtual void | ReleaseListener (IListener *const pIListener)=0 |
virtual IObject * | CreateObject (SCreateObjectData const &objectData=SCreateObjectData::GetEmptyObject(), SRequestUserData const &userData=SRequestUserData::GetEmptyObject())=0 |
virtual void | ReleaseObject (IObject *const pIObject)=0 |
virtual void | GetFileData (char const *const szName, SFileData &fileData)=0 |
virtual void | GetTriggerData (ControlId const triggerId, STriggerData &triggerData)=0 |
virtual void | OnLoadLevel (char const *const szLevelName)=0 |
virtual void | OnUnloadLevel ()=0 |
virtual void | OnLanguageChanged ()=0 |
virtual void | GetImplInfo (SImplInfo &implInfo)=0 |
virtual void | Log (ELogType const type, char const *const szFormat,...)=0 |
Main interface to the audio system, allowing access to audio playback via implementation plug-ins.
|
pure virtual |
Used to register a callback function that is called whenever a given event occurred.
func | - address of the function to be called. |
pObjectToListenTo | - address of the object in which events one is interested. If set to nullptr events of the given type produced by any object will be listened to. |
eventMask | - a combination of CryAudio::ESystemEvents one is interested in. If set to ESystemEvents::All, all events generated by the given object will be received. |
|
pure virtual |
Constructs an instance of an audio listener. Note: Retrieving a listener this way requires the instance to be freed via ReleaseListener once not needed anymore!
szName | - optional name of the listener to be created. |
|
pure virtual |
Constructs an instance of an audio object. Note: Retrieving an object this way requires the object to be freed via ReleaseObject once not needed anymore!
objectData | - optional data used during audio object construction. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Executes the passed trigger ID. This is used for 2D type events exclusively. For 3D type events refer to ExecuteTriggerEx.
triggerId | - ID of the trigger to execute. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Performs the actions passed in the "triggerData" parameter. This is used for 3D type events exclusively. For 2D type events refer to ExecuteTrigger. For convenience and efficiency this is used as a "fire and forget" type action where the user does not need to explicitly handle an audio object. Make sure to only start non-looped type events this way otherwise they will turn into runaway loops.
triggerData | - reference to an object that holds all of the data necessary for the trigger execution. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Ideally called by the application's main thread. Note: If requests are set to call back from an external thread then this will be the thread that calls back.
|
pure virtual |
Returns the path in which audio data is stored.
|
pure virtual |
Retrieve an audio file's attributes.
szName | - name of the file in question. |
fileData | - out parameter which receives the file's data. |
|
pure virtual |
Retrieve information about the current middleware implementation.
[out] | implInfo | - a reference to an instance of SImplInfo |
|
pure virtual |
Retrieve an audio trigger's attributes.
triggerId | - id of the trigger in question. |
triggerData | - out parameter which receives the trigger's data. |
|
pure virtual |
Loads a trigger's data. This can be used in "loading on demand" situations to prepare the data referenced by a trigger.
triggerId | - ID of the trigger in question. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Logs an audio specific message and adds an audio tag plus time stamp to the string. Note: Don't use this method directly, instead use Cry::Audio::Log()!
type | - log message type (ELogType) |
szFormat,... | - printf-style format string and its argument |
|
pure virtual |
This method is called whenever the language is changed. It allows the AudioSystem to reload language specific data.
|
pure virtual |
This method is called by the LevelSystem whenever a level is loaded. It allows the AudioSystem to handle its data accordingly.
szLevelName | - name of the level that is being loaded. |
|
pure virtual |
This method is called by the LevelSystem whenever a level is unloaded. It allows the AudioSystem to handle its data accordingly.
|
pure virtual |
Globally plays a file.
playFileInfo | - reference to a struct that holds data necessary for playback. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Loads all of the data referenced by the given preload request.
id | - ID of the preload request in question. |
bAutoLoadOnly | - boolean indicating whether to load the given preload request only if it's been set to AutoLoad. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Used to reload the registered audio middleware. This is useful when for instance an audio project changed while the application was running.
szLevelName | - name of the currently loaded level so that level specific data gets reloaded as well. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
This is called during shutdown of the engine which releases AudioSystem resources.
|
pure virtual |
Destructs the passed audio listener instance.
pIListener | - Pointer to the audio listener that needs destruction. |
|
pure virtual |
Destructs the passed audio object instance.
pIObject | - Pointer to the audio object that needs destruction. |
|
pure virtual |
Reloads all of the audio controls and their connections.
szFolderPath | - path to where the audio controls data has been stored. |
szLevelName | - name of the currently loaded level to also reload level specific data. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Used to unregister a callback function.
func | - address of the function to be called. |
pObjectToListenTo | - address of the object in which events one is interested. If set to nullptr events of the given type produced by any object will be listened to. |
|
pure virtual |
Used by audio middleware implementations to inform the AudioSystem that an event finished producing sound.
event | - reference to the instance of the event that finished producing sound. |
bSuccess | - boolean indicating whether the event finished successfully or not. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Used by audio middleware implementations to inform the AudioSystem that a file started playback.
standaloneFile | - reference to the instance of the file that started playback. |
bSuccessfullyStarted | - boolean indicating whether playback started successfully or not. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Used by audio middleware implementations to inform the AudioSystem that a file stopped playback.
standaloneFile | - reference to the instance of the file that stopped playback. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Used by audio middleware implementations to register themselves with the AudioSystem.
pIImpl | - pointer to the audio middleware implementation to register. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Globally set a parameter to a given value.
parameterId | - ID of the parameter in question. |
value | - floating point value to which the parameter should be set. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Globally set a switch to a given state.
switchId | - ID of the switch in question. |
switchStateId | - ID of the switch's state in question. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Used to instruct the AudioSystem that it should stop all playing sounds.
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Globally stops a file.
szName | - name of the file in question. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Stops all instances of the passed trigger ID or all instances of all active triggers if CryAudio::InvalidControlId (default) is passed.
triggerId | - ID of the trigger to stop. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Unloads all of the data referenced by the given preload request.
id | - ID of the preload request in question. |
userData | - optional struct used to pass additional data to the internal request. |
|
pure virtual |
Unloads a trigger's data. This can be used in "unloading on demand" situations to free the data referenced by a trigger.
triggerId | - ID of the trigger in question. |
userData | - optional struct used to pass additional data to the internal request. |