interface that exposes audio functionality to an audio middleware implementation More...
#include
Public Member Functions | |
virtual void | Update ()=0 |
virtual ERequestStatus | Init (uint32 const objectPoolSize, uint32 const eventPoolSize)=0 |
virtual ERequestStatus | ShutDown ()=0 |
virtual ERequestStatus | OnBeforeShutDown ()=0 |
virtual ERequestStatus | Release ()=0 |
virtual void | OnRefresh ()=0 |
virtual ERequestStatus | OnLoseFocus ()=0 |
virtual ERequestStatus | OnGetFocus ()=0 |
virtual ERequestStatus | MuteAll ()=0 |
virtual ERequestStatus | UnmuteAll ()=0 |
virtual ERequestStatus | PauseAll ()=0 |
virtual ERequestStatus | ResumeAll ()=0 |
virtual ERequestStatus | StopAllSounds ()=0 |
virtual ERequestStatus | RegisterInMemoryFile (SFileInfo *const pFileInfo)=0 |
virtual ERequestStatus | UnregisterInMemoryFile (SFileInfo *const pFileInfo)=0 |
virtual ERequestStatus | ConstructFile (XmlNodeRef const pRootNode, SFileInfo *const pFileInfo)=0 |
virtual void | DestructFile (IFile *const pIFile)=0 |
virtual char const *const | GetFileLocation (SFileInfo *const pFileInfo)=0 |
virtual ITrigger const * | ConstructTrigger (XmlNodeRef const pRootNode)=0 |
virtual void | DestructTrigger (ITrigger const *const pITrigger)=0 |
virtual IStandaloneFile * | ConstructStandaloneFile (CATLStandaloneFile &standaloneFile, char const *const szFile, bool const bLocalized, ITrigger const *pITrigger=nullptr)=0 |
virtual void | DestructStandaloneFile (IStandaloneFile const *const pIStandaloneFile)=0 |
virtual IParameter const * | ConstructParameter (XmlNodeRef const pRootNode)=0 |
virtual void | DestructParameter (IParameter const *const pIParameter)=0 |
virtual ISwitchState const * | ConstructSwitchState (XmlNodeRef const pRootNode)=0 |
virtual void | DestructSwitchState (ISwitchState const *const pISwitchState)=0 |
virtual IEnvironment const * | ConstructEnvironment (XmlNodeRef const pRootNode)=0 |
virtual void | DestructEnvironment (IEnvironment const *const pIEnvironment)=0 |
virtual IObject * | ConstructGlobalObject ()=0 |
virtual IObject * | ConstructObject (char const *const szName=nullptr)=0 |
virtual void | DestructObject (IObject const *const pIObject)=0 |
virtual IListener * | ConstructListener (char const *const szName=nullptr)=0 |
virtual void | DestructListener (IListener *const pIListener)=0 |
virtual IEvent * | ConstructEvent (CATLEvent &event)=0 |
virtual void | DestructEvent (IEvent const *const pIEvent)=0 |
virtual void | GamepadConnected (DeviceId const deviceUniqueID)=0 |
virtual void | GamepadDisconnected (DeviceId const deviceUniqueID)=0 |
virtual void | SetLanguage (char const *const szLanguage)=0 |
virtual void | GetInfo (SImplInfo &implInfo) const =0 |
virtual void | GetMemoryInfo (SMemoryInfo &memoryInfo) const =0 |
virtual void | GetFileData (char const *const szName, SFileData &fileData) const =0 |
interface that exposes audio functionality to an audio middleware implementation
|
pure virtual |
Parse the implementation-specific XML node that represents an ATLEnvironmentImpl, return a pointer to the data needed for identifying and using this ATLEnvironmentImpl instance inside the AudioImplementation
pRootNode | - an XML node corresponding to the new ATLEnvironmentImpl to be created |
|
pure virtual |
Create an object implementing IEvent that stores all of the data needed by the AudioImplementation to identify and use an AudioEvent. Return a pointer to that object.
event | - ATL Audio-Event associated with the newly created AudioEvent |
|
pure virtual |
Parse the implementation-specific XML node that represents an audio file, fill the fields of the struct referenced by pFileInfo with the data necessary to correctly access and store the file's contents in memory. Create an object implementing IFile to hold implementation-specific data about the file and store a pointer to it in a member of pFileInfo
pRootNode | - an XML node containing the necessary information about the file |
pFileInfo | - a pointer to the struct containing the data used by the ATL to load the file into memory |
|
pure virtual |
Create an object implementing IObject that stores all of the data needed by the AudioImplementation to identify and use the GlobalAudioObject.
|
pure virtual |
Construct an object implementing IListener that stores all of the data needed by the AudioImplementation to identify and use an AudioListener. Return a pointer to that object.
szName | - optional name of the listener to construct (not used in release builds) |
|
pure virtual |
Create an object implementing IObject that stores all of the data needed by the AudioImplementation to identify and use the AudioObject. Return a pointer to that object.
szName | - optional name of the object to construct (not used in release builds) |
|
pure virtual |
Parse the implementation-specific XML node that represents an ATLRtpcImpl, return a pointer to the data needed for identifying and using this ATLRtpcImpl instance inside the AudioImplementation
pRootNode | - an XML node corresponding to the new ATLRtpcImpl to be created |
|
pure virtual |
Create an object implementing ConstructStandaloneFile that stores all of the data needed by the AudioImplementation to identify and use an audio standalone file. Return a pointer to that object.
standaloneFile | - reference to the CATLStandaloneFile associated with the IStandaloneFile object we want to construct. It's used as an ID to link the two objects. |
szFile | - full path to the file that wants to be played |
bLocalized | - is the file specified in szFile localized or not |
pITrigger | - if set, routes the playing of the audio file through the specified implementation trigger |
|
pure virtual |
Parse the implementation-specific XML node that represents an ATLSwitchStateImpl, return a pointer to the data needed for identifying and using this ATLSwitchStateImpl instance inside the AudioImplementation
pRootNode | - an XML node corresponding to the new ATLSwitchStateImpl to be created |
|
pure virtual |
Parse the implementation-specific XML node that represents an ATLTriggerImpl, return a pointer to the data needed for identifying and using this ATLTriggerImpl instance inside the AudioImplementation
pRootNode | - an XML node corresponding to the new ATLTriggerImpl to be created |
|
pure virtual |
Free the memory and potentially other resources used by the supplied IEnvironment instance
pIEnvironment | - pointer to the object implementing IEnvironment to be discarded |
|
pure virtual |
Free the memory and potentially other resources used by the supplied IEvent instance
pIEvent | - pointer to the object implementing IEvent to be discarded |
|
pure virtual |
Free the memory and potentially other resources used by the supplied IFile instance. Normally, an IFile instance is created by ConstructFile() and a pointer is stored in a member of SFileInfo.
pIFile | - pointer to the object implementing IFile to be discarded |
|
pure virtual |
Destruct the supplied CryAudio::Impl::IListener instance.
pIListener | - pointer to the object implementing CryAudio::Impl::IListener to be discarded |
|
pure virtual |
Free the memory and potentially other resources used by the supplied IObject instance
pIObject | - pointer to the object implementing IObject to be discarded |
|
pure virtual |
Free the memory and potentially other resources used by the supplied IAudioParameter instance
pIParameter | - pointer to the object implementing IAudioParameter to be discarded |
|
pure virtual |
Free the memory and potentially other resources used by the supplied IStandaloneFile instance
pIStandaloneFile | - pointer to the object implementing IStandaloneFile to be discarded |
|
pure virtual |
Free the memory and potentially other resources used by the supplied ISwitchState instance
pISwitchState | - pointer to the object implementing ISwitchState to be discarded |
|
pure virtual |
Free the memory and potentially other resources used by the supplied ITrigger instance
pITrigger | - pointer to the object implementing ITrigger to be discarded |
|
pure virtual |
Called whenever a Gamepad gets connected. This is used by audio middleware that supports controller effects such as rumble.
deviceUniqueID | - unique device identifier |
|
pure virtual |
Called whenever a Gamepad gets disconnected. This is used by audio middleware that supports controller effects such as rumble.
deviceUniqueID | - unique device identifier |
|
pure virtual |
Asks the audio implementation to fill the fileData structure with data (e.g. duration of track) relating to the standalone file referenced in szName.
[in] | szName | - filepath to the standalone file |
[out] | fileData | - a reference to an instance of SAudioFileData |
|
pure virtual |
Get the full path to the folder containing the file described by the pFileInfo
pFileInfo | - ATL-specific information describing the file whose location is being queried |
|
pure virtual |
Return a string of the audio middeware folder name plus a separator. This string is used for building the path to audio files and audio controls editor data.
[out] | implInfo | - a reference to an instance of SImplInfo |
|
pure virtual |
Fill in the memoryInfo describing the current memory usage of this AudioImplementation. This data gets displayed in the AudioDebug header shown on the screen whenever s_DrawAudioDebug is not 0
[out] | memoryInfo | - a reference to an instance of SMemoryInfo |
|
pure virtual |
Initialize all internal components and the audio middleware.
objectPoolSize | - Number of objects to preallocate storage for. |
eventPoolSize | - Number of events to preallocate storage for. |
|
pure virtual |
Mute all sounds, after this call there should be no audio coming from the audio middleware.
|
pure virtual |
Called before the middleware is shutdown to give it time to clean up. After this call all the ATL audio objects and events will be released.
|
pure virtual |
This method is called every time the main Game (or Editor) window gets focus.
|
pure virtual |
This method is called every time the main Game (or Editor) window loses focus.
|
pure virtual |
|
pure virtual |
Pauses playback of all audio events.
|
pure virtual |
Inform the audio middleware about the memory location of a preloaded audio-data file
pFileInfo | - ATL-specific information describing the resources used by the preloaded file being reported |
|
pure virtual |
Frees all of the resources used by the class and destroys the instance. This action is not reversible.
|
pure virtual |
Resumes playback of all audio events.
|
pure virtual |
Informs the audio middleware that the localized sound banks and streamed files need to use a different language. NOTE: this function DOES NOT unload or reload the currently loaded audio files
szLanguage | - a C-string representing the CryEngine language |
|
pure virtual |
Shuts down all of the internal components and the audio middleware. Note: After a call to ShutDown(), the system can still be reinitialized by calling Init().
|
pure virtual |
Stop all currently playing sounds. Has no effect on anything triggered after this method is called.
|
pure virtual |
Restore the audio output of the audio middleware after a call to MuteAll().
|
pure virtual |
Inform the audio middleware that the memory containing the preloaded audio-data file should no longer be used
pFileInfo | - ATL-specific information describing the resources used by the preloaded file being invalidated |
|
pure virtual |
Is called at roughly the same rate as the external thread and a minimum rate if the external thread falls below a given threshold.