orx
1.11
Portable Game Engine
|
Macros | |
#define | orxSOUNDSYSTEM_KZ_CONFIG_RATIO "DimensionRatio" |
#define | orxSOUNDSYSTEM_KZ_CONFIG_SECTION "SoundSystem" |
#define | orxSOUNDSYSTEM_KZ_CONFIG_STREAM_BUFFER_NUMBER "StreamBufferNumber" |
#define | orxSOUNDSYSTEM_KZ_CONFIG_STREAM_BUFFER_SIZE "StreamBufferSize" |
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 } |
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.
#define orxSOUNDSYSTEM_KZ_CONFIG_STREAM_BUFFER_NUMBER "StreamBufferNumber" |
Definition at line 80 of file orxSoundSystem.h.
#define orxSOUNDSYSTEM_KZ_CONFIG_STREAM_BUFFER_SIZE "StreamBufferSize" |
Definition at line 79 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
Enumerator | |
---|---|
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_SAMPLE* orxFASTCALL orxSoundSystem_CreateSample | ( | orxU32 | _u32ChannelNumber, |
orxU32 | _u32FrameNumber, | ||
orxU32 | _u32SampleRate | ||
) |
Creates an empty sample
[in] | _u32ChannelNumber | Number of channels of the sample |
[in] | _u32FrameNumber | Number of frame of the sample (number of "samples" = number of frames * number of channels) |
[in] | _u32SampleRate | Sampling rate of the sample (ie. number of frames per second) |
orxDLLAPI orxSOUNDSYSTEM_SOUND* orxFASTCALL orxSoundSystem_CreateStream | ( | orxU32 | _u32ChannelNumber, |
orxU32 | _u32SampleRate, | ||
const orxSTRING | _zReference | ||
) |
Creates an empty stream
[in] | _u32ChannelNumber | Number of channels for the stream |
[in] | _u32SampleRate | Sampling rate of the stream (ie. number of frames per second) |
[in] | _zReference | Reference name used for streaming events (usually the corresponding config ID) |
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 orxSTATUS orxFASTCALL orxSoundSystem_DeleteSample | ( | orxSOUNDSYSTEM_SAMPLE * | _pstSample | ) |
Deletes a sound sample
[in] | _pstSample | Concerned sample |
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 orxSTATUS orxFASTCALL orxSoundSystem_GetSampleInfo | ( | const orxSOUNDSYSTEM_SAMPLE * | _pstSample, |
orxU32 * | _pu32ChannelNumber, | ||
orxU32 * | _pu32FrameNumber, | ||
orxU32 * | _pu32SampleRate | ||
) |
Gets sample info
[in] | _pstSample | Concerned sample |
[in] | _pu32ChannelNumber | Number of channels of the sample |
[in] | _pu32FrameNumber | Number of frame of the sample (number of "samples" = number of frames * number of channels) |
[in] | _pu32SampleRate | Sampling rate of the sample (ie. number of frames per second) |
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_GetTime | ( | const orxSOUNDSYSTEM_SOUND * | _pstSound | ) |
Gets a sound's time (ie. cursor/play position from beginning)
[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?
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 |
Sets global volume
[in] | _fGlobalVolume | Global volume to set |
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 orxSTATUS orxFASTCALL orxSoundSystem_SetSampleData | ( | orxSOUNDSYSTEM_SAMPLE * | _pstSample, |
const orxS16 * | _as16Data, | ||
orxU32 | _u32SampleNumber | ||
) |
Sets sample data
[in] | _pstSample | Concerned sample |
[in] | _as16Data | Data to set |
[in] | _u32SampleNumber | Number of samples in the data array |
orxDLLAPI orxSTATUS orxFASTCALL orxSoundSystem_SetTime | ( | orxSOUNDSYSTEM_SOUND * | _pstSound, |
orxFLOAT | _fTime | ||
) |
Sets a sound time (ie. cursor/play position from beginning)
[in] | _pstSound | Concerned sound |
[in] | _fTime | Time, in seconds |
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 |