Function AudioServerSingleton.lock

Locks the audio driver's main loop. Note: Remember to unlock it afterwards.

void lock() nothrow @nogc;