The OpenD Programming Language

AudioPcmOutThreadImplementation.suspend

Stops playing and closes the audio device, but keeps the worker thread alive and waiting for a call to unsuspend, which will re-open everything and pick up (close to; a couple buffers may be discarded) where it left off.

This is more reliable than pause and unpause since it doesn't require the system/hardware to cooperate.

class AudioPcmOutThreadImplementation
void
suspend
()

Meta

History

Added December 30, 2021 (dub v10.5)