Detailed Description
Sound pointer module Allows to creates sound containers for objects.
Define Documentation
| #define orxSOUNDPOINTER_KU32_SOUND_NUMBER 4 |
Typedef Documentation
Function Documentation
Adds a sound
- Parameters:
-
| [in] | _pstSoundPointer | Concerned SoundPointer |
| [in] | _pstSound | Sound to add |
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundPointer_AddSoundFromConfig |
( |
orxSOUNDPOINTER * |
_pstSoundPointer, |
|
|
const orxSTRING |
_zSoundConfigID |
|
) |
| |
Adds a sound using its config ID
- Parameters:
-
| [in] | _pstSoundPointer | Concerned SoundPointer |
| [in] | _zSoundConfigID | Config ID of the sound to add |
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
Creates an empty SoundPointer
- Parameters:
-
| [in] | _pstOwner | Sound's owner used for event callbacks (usually an orxOBJECT) |
- Returns:
- orxSOUNDPOINTER / orxNULL
Deletes a SoundPointer
- Parameters:
-
| [in] | _pstSoundPointer | Concerned SoundPointer |
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
| orxDLLAPI void orxFASTCALL orxSoundPointer_Enable |
( |
orxSOUNDPOINTER * |
_pstSoundPointer, |
|
|
orxBOOL |
_bEnable |
|
) |
| |
Enables/disables a SoundPointer
- Parameters:
-
| [in] | _pstSoundPointer | Concerned SoundPointer |
| [in] | _bEnable | Enable / disable |
| orxDLLAPI void orxFASTCALL orxSoundPointer_Exit |
( |
) |
|
Exits from the SoundPointer module
Gets last added sound (Do *NOT* destroy it directly before removing it!!!)
- Parameters:
-
| [in] | _pstSoundPointer | Concerned SoundPointer |
- Returns:
- orxSOUND / orxNULL
Gets a SoundPointer owner
- Parameters:
-
| [in] | _pstSoundPointer | Concerned SoundPointer |
- Returns:
- orxSTRUCTURE / orxNULL
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundPointer_Init |
( |
) |
|
Inits the SoundPointer module
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
| orxDLLAPI orxBOOL orxFASTCALL orxSoundPointer_IsEnabled |
( |
const orxSOUNDPOINTER * |
_pstSoundPointer ) |
|
Is SoundPointer enabled?
- Parameters:
-
| [in] | _pstSoundPointer | Concerned SoundPointer |
- Returns:
- orxTRUE if enabled, orxFALSE otherwise
Pauses all related sounds
- Parameters:
-
| [in] | _pstSoundPointer | Concerned SoundPointer |
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
Plays all related sounds
- Parameters:
-
| [in] | _pstSoundPointer | Concerned SoundPointer |
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
Removes a sound
- Parameters:
-
| [in] | _pstSoundPointer | Concerned SoundPointer |
| [in] | _pstSound | Sound to remove |
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundPointer_RemoveSoundFromConfig |
( |
orxSOUNDPOINTER * |
_pstSoundPointer, |
|
|
const orxSTRING |
_zSoundConfigID |
|
) |
| |
Removes a sound using using its config ID
- Parameters:
-
| [in] | _pstSoundPointer | Concerned SoundPointer |
| [in] | _zSoundConfigID | Config ID of the sound to remove |
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
| orxDLLAPI void orxFASTCALL orxSoundPointer_Setup |
( |
) |
|
SoundPointer module setup
Stops all related sounds
- Parameters:
-
| [in] | _pstSoundPointer | Concerned SoundPointer |
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE