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

void AUD_SoftwareDevice::lock (  )  [virtual]

Locks the device. Used to make sure that between lock and unlock, no buffers are read, so that it is possible to start, resume, pause, stop or seek several playback handles simultaneously.

Warning:
Make sure the locking time is as small as possible to avoid playback delays that result in unexpected noise and cracks.

Implements AUD_IDevice.

Definition at line 403 of file AUD_SoftwareDevice.cpp.

References m_mutex.

Referenced by getCapability(), getPosition(), getStatus(), mix(), pause(), play(), resume(), seek(), sendMessage(), setCapability(), setKeep(), stop(), AUD_JackDevice::~AUD_JackDevice(), and AUD_SDLDevice::~AUD_SDLDevice().

{
      pthread_mutex_lock(&m_mutex);
}


Generated by  Doxygen 1.6.0   Back to index