diff options
Diffstat (limited to 'Alc/backends/sndio.c')
-rw-r--r-- | Alc/backends/sndio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/backends/sndio.c b/Alc/backends/sndio.c index af519794..00d7c654 100644 --- a/Alc/backends/sndio.c +++ b/Alc/backends/sndio.c @@ -105,7 +105,9 @@ static int ALCsndioBackend_mixerProc(void *ptr) ALsizei len = self->data_size; ALubyte *WritePtr = self->mix_data; + ALCsndioBackend_lock(self); aluMixData(device, WritePtr, len/frameSize); + ALCsndioBackend_unlock(self); while(len > 0 && !self->killNow) { wrote = sio_write(self->sndHandle, WritePtr, len); |