Defines | |
| #define | orxSOUNDSYSTEM_KZ_CONFIG_RATIO "DimensionRatio" |
| #define | orxSOUNDSYSTEM_KZ_CONFIG_SECTION "SoundSystem" |
Typedefs | |
| typedef struct __orxSOUNDSYSTEM_SAMPLE_t | orxSOUNDSYSTEM_SAMPLE |
| typedef struct __orxSOUNDSYSTEM_SOUND_t | orxSOUNDSYSTEM_SOUND |
Enumerations | |
| enum | orxSOUNDSYSTEM_STATUS { orxSOUNDSYSTEM_STATUS_PLAY = 0, orxSOUNDSYSTEM_STATUS_PAUSE, orxSOUNDSYSTEM_STATUS_STOP, orxSOUNDSYSTEM_STATUS_NUMBER, orxSOUNDSYSTEM_STATUS_NONE = orxENUM_NONE } |
Functions | |
| orxDLLAPI orxSOUNDSYSTEM_SOUND *orxFASTCALL | orxSoundSystem_CreateFromSample (const orxSOUNDSYSTEM_SAMPLE *_pstSample) |
| orxDLLAPI orxSOUNDSYSTEM_SOUND *orxFASTCALL | orxSoundSystem_CreateStreamFromFile (const orxSTRING _zFilename, const orxSTRING _zReference) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_Delete (orxSOUNDSYSTEM_SOUND *_pstSound) |
| orxDLLAPI void orxFASTCALL | orxSoundSystem_Exit () |
| orxDLLAPI orxFLOAT orxFASTCALL | orxSoundSystem_GetAttenuation (const orxSOUNDSYSTEM_SOUND *_pstSound) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxSoundSystem_GetDuration (const orxSOUNDSYSTEM_SOUND *_pstSound) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxSoundSystem_GetGlobalVolume () |
| orxDLLAPI orxVECTOR *orxFASTCALL | orxSoundSystem_GetListenerPosition (orxVECTOR *_pvPosition) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxSoundSystem_GetPitch (const orxSOUNDSYSTEM_SOUND *_pstSound) |
| orxDLLAPI orxVECTOR *orxFASTCALL | orxSoundSystem_GetPosition (const orxSOUNDSYSTEM_SOUND *_pstSound, orxVECTOR *_pvPosition) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxSoundSystem_GetReferenceDistance (const orxSOUNDSYSTEM_SOUND *_pstSound) |
| orxDLLAPI orxSOUNDSYSTEM_STATUS orxFASTCALL | orxSoundSystem_GetStatus (const orxSOUNDSYSTEM_SOUND *_pstSound) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxSoundSystem_GetVolume (const orxSOUNDSYSTEM_SOUND *_pstSound) |
| orxDLLAPI orxBOOL orxFASTCALL | orxSoundSystem_HasRecordingSupport () |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_Init () |
| orxDLLAPI orxBOOL orxFASTCALL | orxSoundSystem_IsLooping (const orxSOUNDSYSTEM_SOUND *_pstSound) |
| orxDLLAPI orxSOUNDSYSTEM_SAMPLE *orxFASTCALL | orxSoundSystem_LoadSample (const orxSTRING _zFilename) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_Loop (orxSOUNDSYSTEM_SOUND *_pstSound, orxBOOL _bLoop) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_Pause (orxSOUNDSYSTEM_SOUND *_pstSound) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_Play (orxSOUNDSYSTEM_SOUND *_pstSound) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_SetAttenuation (orxSOUNDSYSTEM_SOUND *_pstSound, orxFLOAT _fAttenuation) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_SetGlobalVolume (orxFLOAT _fGlobalVolume) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_SetListenerPosition (const orxVECTOR *_pvPosition) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_SetPitch (orxSOUNDSYSTEM_SOUND *_pstSound, orxFLOAT _fPitch) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_SetPosition (orxSOUNDSYSTEM_SOUND *_pstSound, const orxVECTOR *_pvPosition) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_SetReferenceDistance (orxSOUNDSYSTEM_SOUND *_pstSound, orxFLOAT _fDistance) |
| orxDLLAPI void orxFASTCALL | orxSoundSystem_Setup () |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_SetVolume (orxSOUNDSYSTEM_SOUND *_pstSound, orxFLOAT _fVolume) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_StartRecording (const orxCHAR *_zName, orxBOOL _bWriteToFile, orxU32 _u32SampleRate, orxU32 _u32ChannelNumber) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_Stop (orxSOUNDSYSTEM_SOUND *_pstSound) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_StopRecording () |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSoundSystem_UnloadSample (orxSOUNDSYSTEM_SAMPLE *_pstSample) |
Sound system plugin module Plugin module that handles sound system
| #define orxSOUNDSYSTEM_KZ_CONFIG_RATIO "DimensionRatio" |
Definition at line 78 of file orxSoundSystem.h.
| #define orxSOUNDSYSTEM_KZ_CONFIG_SECTION "SoundSystem" |
Config defines
Definition at line 77 of file orxSoundSystem.h.
| typedef struct __orxSOUNDSYSTEM_SAMPLE_t orxSOUNDSYSTEM_SAMPLE |
Definition at line 58 of file orxSoundSystem.h.
| typedef struct __orxSOUNDSYSTEM_SOUND_t orxSOUNDSYSTEM_SOUND |
Abstract sound structures
Definition at line 57 of file orxSoundSystem.h.
Sound system status enum
| orxSOUNDSYSTEM_STATUS_PLAY | |
| orxSOUNDSYSTEM_STATUS_PAUSE | |
| orxSOUNDSYSTEM_STATUS_STOP | |
| orxSOUNDSYSTEM_STATUS_NUMBER | |
| orxSOUNDSYSTEM_STATUS_NONE |
Definition at line 62 of file orxSoundSystem.h.
| orxDLLAPI orxSOUNDSYSTEM_SOUND* orxFASTCALL orxSoundSystem_CreateFromSample | ( | const orxSOUNDSYSTEM_SAMPLE * | _pstSample ) |
Creates a sound from preloaded sample (can be played directly)
| [in] | _pstSample | Concerned sample |
| orxDLLAPI orxSOUNDSYSTEM_SOUND* orxFASTCALL orxSoundSystem_CreateStreamFromFile | ( | const orxSTRING | _zFilename, |
| const orxSTRING | _zReference | ||
| ) |
Creates a streamed sound from file (can be played directly)
| [in] | _zFilename | Name of the file to load as a stream (won't be completely loaded in memory, useful for musics) |
| [in] | _zReference | Reference name used for streaming events (usually the corresponding config ID) |
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_Delete | ( | orxSOUNDSYSTEM_SOUND * | _pstSound ) |
Deletes a sound
| [in] | _pstSound | Concerned sound |
| orxDLLAPI void orxFASTCALL orxSoundSystem_Exit | ( | ) |
Exits from the sound system module
| orxDLLAPI orxFLOAT orxFASTCALL orxSoundSystem_GetAttenuation | ( | const orxSOUNDSYSTEM_SOUND * | _pstSound ) |
Gets a sound attenuation
| [in] | _pstSound | Concerned Sound |
| orxDLLAPI orxFLOAT orxFASTCALL orxSoundSystem_GetDuration | ( | const orxSOUNDSYSTEM_SOUND * | _pstSound ) |
Gets a sound duration
| [in] | _pstSound | Concerned sound |
| orxDLLAPI orxFLOAT orxFASTCALL orxSoundSystem_GetGlobalVolume | ( | ) |
Gets global volume
| orxDLLAPI orxFLOAT orxFASTCALL orxSoundSystem_GetPitch | ( | const orxSOUNDSYSTEM_SOUND * | _pstSound ) |
Gets a sound pitch
| [in] | _pstSound | Concerned sound |
| orxDLLAPI orxVECTOR* orxFASTCALL orxSoundSystem_GetPosition | ( | const orxSOUNDSYSTEM_SOUND * | _pstSound, |
| orxVECTOR * | _pvPosition | ||
| ) |
Gets a sound position
| [in] | _pstSound | Concerned sound |
| [out] | _pvPosition | Position to get |
| orxDLLAPI orxFLOAT orxFASTCALL orxSoundSystem_GetReferenceDistance | ( | const orxSOUNDSYSTEM_SOUND * | _pstSound ) |
Gets a sound reference distance
| [in] | _pstSound | Concerned Sound |
| orxDLLAPI orxSOUNDSYSTEM_STATUS orxFASTCALL orxSoundSystem_GetStatus | ( | const orxSOUNDSYSTEM_SOUND * | _pstSound ) |
Gets a sound status (play/pause/stop)
| [in] | _pstSound | Concerned sound |
| orxDLLAPI orxFLOAT orxFASTCALL orxSoundSystem_GetVolume | ( | const orxSOUNDSYSTEM_SOUND * | _pstSound ) |
Gets a sound volume
| [in] | _pstSound | Concerned sound |
| orxDLLAPI orxBOOL orxFASTCALL orxSoundSystem_HasRecordingSupport | ( | ) |
Is recording possible on the current system?
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_Init | ( | ) |
Inits the sound system module
| orxDLLAPI orxBOOL orxFASTCALL orxSoundSystem_IsLooping | ( | const orxSOUNDSYSTEM_SOUND * | _pstSound ) |
Is sound looping?
| [in] | _pstSound | Concerned sound |
| orxDLLAPI orxSOUNDSYSTEM_SAMPLE* orxFASTCALL orxSoundSystem_LoadSample | ( | const orxSTRING | _zFilename ) |
Loads a sound sample from file (cannot be played directly)
| [in] | _zFilename | Name of the file to load as a sample (completely loaded in memory, useful for sound effects) |
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_Loop | ( | orxSOUNDSYSTEM_SOUND * | _pstSound, |
| orxBOOL | _bLoop | ||
| ) |
Loops a sound
| [in] | _pstSound | Concerned sound |
| [in] | _bLoop | Loop / no loop |
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_Pause | ( | orxSOUNDSYSTEM_SOUND * | _pstSound ) |
Pauses a sound
| [in] | _pstSound | Concerned sound |
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_Play | ( | orxSOUNDSYSTEM_SOUND * | _pstSound ) |
Plays a sound
| [in] | _pstSound | Concerned sound |
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_SetAttenuation | ( | orxSOUNDSYSTEM_SOUND * | _pstSound, |
| orxFLOAT | _fAttenuation | ||
| ) |
Sets a sound attenuation
| [in] | _pstSound | Concerned Sound |
| [in] | _fAttenuation | Desired attenuation |
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_SetGlobalVolume | ( | orxFLOAT | _fGlobalVolume ) |
Sets global volume
| [in] | _fGlobalVolume | Global volume to set |
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_SetListenerPosition | ( | const orxVECTOR * | _pvPosition ) |
Sets listener position
| [in] | _pvPosition | Desired position |
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_SetPitch | ( | orxSOUNDSYSTEM_SOUND * | _pstSound, |
| orxFLOAT | _fPitch | ||
| ) |
Sets a sound pitch
| [in] | _pstSound | Concerned sound |
| [in] | _fPitch | Pitch to set |
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_SetPosition | ( | orxSOUNDSYSTEM_SOUND * | _pstSound, |
| const orxVECTOR * | _pvPosition | ||
| ) |
Sets a sound position
| [in] | _pstSound | Concerned sound |
| [in] | _pvPosition | Position to set |
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_SetReferenceDistance | ( | orxSOUNDSYSTEM_SOUND * | _pstSound, |
| orxFLOAT | _fDistance | ||
| ) |
Sets a sound reference distance
| [in] | _pstSound | Concerned Sound |
| [in] | _fDistance | Within this distance, sound is perceived at its maximum volume |
| orxDLLAPI void orxFASTCALL orxSoundSystem_Setup | ( | ) |
Sound system module setup
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_SetVolume | ( | orxSOUNDSYSTEM_SOUND * | _pstSound, |
| orxFLOAT | _fVolume | ||
| ) |
Sets a sound volume
| [in] | _pstSound | Concerned sound |
| [in] | _fVolume | Volume to set [0, 1] |
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_StartRecording | ( | const orxCHAR * | _zName, |
| orxBOOL | _bWriteToFile, | ||
| orxU32 | _u32SampleRate, | ||
| orxU32 | _u32ChannelNumber | ||
| ) |
Starts recording
| [in] | _zName | Name for the recorded sound/file |
| [in] | _bWriteToFile | Should write to file? |
| [in] | _u32SampleRate | Sample rate, 0 for default rate (44100Hz) |
| [in] | _u32ChannelNumber | Channel number, 0 for default mono channel |
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_Stop | ( | orxSOUNDSYSTEM_SOUND * | _pstSound ) |
Stops a sound
| [in] | _pstSound | Concerned sound |
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_StopRecording | ( | ) |
Stops recording
| orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_UnloadSample | ( | orxSOUNDSYSTEM_SAMPLE * | _pstSample ) |
Unloads a sound sample
| [in] | _pstSample | Concerned sample |
1.5.6