My Project
|
ParaAudioEngine core interface. More...
#include <IParaAudioEngine.h>
Public Member Functions | |
virtual void | Release ()=0 |
virtual bool | initialize (const char *deviceName=0x0, int outputFrequency=-1, int eaxEffectSlots=4)=0 |
Initializes the manager. More... | |
virtual void | shutDown ()=0 |
Shuts the manager down, cleaning up audio sources in the process. Does not clean up decoders, data sources, or event handlers. | |
virtual void | update ()=0 |
If threading is disabled, you must call this function every frame to update the playback buffers of audio sources. Otherwise it should not be called. | |
virtual IParaAudioSource * | getSoundByName (const char *name)=0 |
Returns an Audio Source by its "name" and NULL if the name is not found. More... | |
virtual void | releaseAllSources ()=0 |
Releases ALL Audio Sources (but does not shutdown the manager) | |
virtual void | release (IParaAudioSource *source)=0 |
Releases a single Audio Source, removing it from the manager. More... | |
virtual const char * | getAvailableDeviceName (unsigned int index)=0 |
Returns the name of an available playback device. More... | |
virtual unsigned int | getAvailableDeviceCount ()=0 |
Returns the number of playback devices available for use. More... | |
virtual const char * | getDefaultDeviceName ()=0 |
Returns the name of the default system playback device. More... | |
virtual IParaAudioSource * | create (const char *name, const char *filename, bool stream=false)=0 |
Creates an Audio Source object using the highest priority data source that has the referenced filename. More... | |
virtual IParaAudioSource * | createFromMemory (const char *name, const char *data, size_t length, const char *extension)=0 |
Creates an Audio Source from a memory buffer using a specific audio codec. More... | |
virtual IParaAudioSource * | createFromRaw (const char *name, const char *data, size_t length, unsigned int frequency, ParaAudioFormats format)=0 |
Creates an Audio Source from raw audio data in a memory buffer. More... | |
virtual void | SetDistanceModel (ParaAudioDistanceModelEnum eDistModel)=0 |
set the audio distance model. More... | |
virtual void | setPosition (const PARAVECTOR3 &pos)=0 |
Interface for the listener in cAudio. This class provides abilities to move and orient where your camera or user is in the audio world. More... | |
virtual void | setDirection (const PARAVECTOR3 &dir)=0 |
Sets the direction the listener is facing. More... | |
virtual void | setUpVector (const PARAVECTOR3 &up)=0 |
Sets the up vector to use for the listener Default up vector is Y+, same as OpenGL. More... | |
virtual void | setVelocity (const PARAVECTOR3 &vel)=0 |
Sets the current velocity of the listener for doppler effects. More... | |
virtual void | setMasterVolume (const float &volume)=0 |
Sets the global volume modifier (will effect all sources) More... | |
virtual void | move (const PARAVECTOR3 &pos)=0 |
Convenience function to automatically set the velocity and position for you in a single call. More... | |
virtual PARAVECTOR3 | getPosition (void) const =0 |
Returns the current position of the listener. | |
virtual PARAVECTOR3 | getDirection (void) const =0 |
Returns the current direction of the listener. | |
virtual PARAVECTOR3 | getUpVector (void) const =0 |
Returns the current up vector of the listener. | |
virtual PARAVECTOR3 | getVelocity (void) const =0 |
Returns the current velocity of the listener. | |
virtual float | getMasterVolume (void) const =0 |
Returns the global volume modifier for all sources. | |
virtual void | SetCoordinateSystem (int nLeftHand)=0 |
set the default coordinate system used. More... | |
ParaAudioEngine core interface.
|
pure virtual |
Creates an Audio Source object using the highest priority data source that has the referenced filename.
name | Name of the audio source. |
filename | Path to the file to load audio data from. |
stream | Whether to stream the audio data or load it all into a memory buffer at the start. You should consider using streaming for really large sound files. |
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
Creates an Audio Source from a memory buffer using a specific audio codec.
name | Name of the audio source. |
data | Pointer to a buffer in memory to load the data from. |
length | Length of the data buffer. |
extension | Extension for the audio codec of the data in the memory buffer. |
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
Creates an Audio Source from raw audio data in a memory buffer.
name | Name of the audio source. |
data | Pointer to a buffer in memory to load the data from. |
length | Length of the data buffer. |
frequency | Frequency (or sample rate) of the audio data. |
format | Format of the audio data. |
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
Returns the number of playback devices available for use.
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
Returns the name of an available playback device.
index | Specify which name to retrieve ( Range: 0 to getAvailableDeviceCount()-1 ) |
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
Returns the name of the default system playback device.
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
Returns an Audio Source by its "name" and NULL if the name is not found.
name | Name of the audio source to retrieve. |
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
Initializes the manager.
deviceName | Name of the device to create this manager for. |
outputFrequency | Frequency of the output audio or -1 for the device default. |
eaxEffectSlots | Number of EFX effect slots to request. Has no effect if EFX is not supported or compiled out. |
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
Convenience function to automatically set the velocity and position for you in a single call.
Velocity will be set to new position - last position
pos | New position to move the listener to. |
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
Releases a single Audio Source, removing it from the manager.
source | Pointer to the source to release. |
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
set the default coordinate system used.
nLeftHand | 0 if it is left handed coordinate system, which is the one used by DirectX. and 1, if it is the right handed coordinate system which is OpenAL(and OpenGL) uses. |
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
Sets the direction the listener is facing.
dir | New direction vector for the listener. |
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
set the audio distance model.
see: http://connect.creativelabs.com/openal/Documentation/OpenAL%201.1%20Specification.htm
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
Sets the global volume modifier (will effect all sources)
volume | Volume to scale all sources by. Range: 0.0 to +inf. |
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
Interface for the listener in cAudio. This class provides abilities to move and orient where your camera or user is in the audio world.
Sets the position of the listener. Note that you will still have to set velocity after this call for proper doppler effects. Use move() if you'd like to have cAudio automatically handle velocity for you.
pos | New position for the listener. |
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
Sets the up vector to use for the listener Default up vector is Y+, same as OpenGL.
up | New up vector for the listener. |
Implemented in ParaEngine::CParaSimpleAudioEngine.
|
pure virtual |
Sets the current velocity of the listener for doppler effects.
vel | New velocity for the listener. |
Implemented in ParaEngine::CParaSimpleAudioEngine.