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

bool AUD_SoftwareDevice::setKeep ( AUD_Handle handle,
bool  keep 
) [virtual]

Sets the behaviour of the device for a played back sound when the sound doesn't return any more samples.

Parameters:
handle The handle returned by the play function.
keep True when the source should be paused and not deleted.
Returns:
  • true if the behaviour has been changed.
  • false if the handle is invalid.

Implements AUD_IDevice.

Definition at line 297 of file AUD_SoftwareDevice.cpp.

References isValid(), lock(), and unlock().

{
      bool result = false;

      lock();

      if(isValid(handle))
      {
            ((AUD_SoftwareHandle*)handle)->keep = keep;
            result = true;
      }

      unlock();

      return result;
}


Generated by  Doxygen 1.6.0   Back to index