Logo Search packages:      
Sourcecode: blender version File versions  Download package

virtual AUD_Handle* AUD_IDevice::play ( AUD_IFactory factory,
bool  keep = false 
) [pure virtual]

Plays a sound source.

Parameters:
factory The factory to create the reader for the sound source.
keep When keep is true the sound source will not be deleted but set to paused when its end has been reached.
Returns:
Returns a handle with which the playback can be controlled. This is NULL if the sound couldn't be played back.
Exceptions:
AUD_Exception Thrown if there's an unexpected (from the device side) error during creation of the reader.

Implemented in AUD_NULLDevice, AUD_SoftwareDevice, and AUD_OpenALDevice.


Generated by  Doxygen 1.6.0   Back to index