diff options
author | Chris Robinson <[email protected]> | 2018-03-01 21:23:13 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-03-01 21:23:13 -0800 |
commit | 6f62fed65c4dcdf999a612e258cca59a22355f3c (patch) | |
tree | bd8d8f9e84beb94761ae35da41c3e66465af62a8 /Alc/backends/jack.c | |
parent | cba37819d1e68ff6473d0e10b42ac9465943d5cb (diff) |
Add an option to limit the write size of the ringbuffer
Diffstat (limited to 'Alc/backends/jack.c')
-rw-r--r-- | Alc/backends/jack.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Alc/backends/jack.c b/Alc/backends/jack.c index e6f4b435..003877a4 100644 --- a/Alc/backends/jack.c +++ b/Alc/backends/jack.c @@ -236,7 +236,8 @@ static int ALCjackPlayback_bufferSizeNotify(jack_nframes_t numframes, void *arg) ll_ringbuffer_free(self->Ring); self->Ring = ll_ringbuffer_create(bufsize, - FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->AmbiOrder) + FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->AmbiOrder), + true ); if(!self->Ring) { @@ -437,7 +438,8 @@ static ALCboolean ALCjackPlayback_reset(ALCjackPlayback *self) ll_ringbuffer_free(self->Ring); self->Ring = ll_ringbuffer_create(bufsize, - FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->AmbiOrder) + FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->AmbiOrder), + true ); if(!self->Ring) { |