From 12e443d61dd541cde1749b1b65e0de030eda9f86 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 3 Feb 2015 01:23:19 -0800 Subject: Don't try to spawn a JACK server by default And don't print an error if one couldn't be started when not requested. --- Alc/backends/jack.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Alc/backends/jack.c') diff --git a/Alc/backends/jack.c b/Alc/backends/jack.c index 8d57e7d3..ea99a953 100644 --- a/Alc/backends/jack.c +++ b/Alc/backends/jack.c @@ -374,10 +374,10 @@ static ALCboolean ALCjackPlayback_reset(ALCjackPlayback *self) } /* Ignore the requested buffer metrics and just keep one JACK-sized buffer - * ready for when requested. Note that even though the ringbuffer will have - * 2 periods worth of space, only half of it will be filled at a given time - * because there's one element less of it that's writeable, and we only - * write in update-sized chunks. */ + * ready for when requested. Note that one period's worth of audio in the + * ring buffer will always be left unfilled because one element of the ring + * buffer will not be writeable, and we only write in period-sized chunks. + */ device->Frequency = jack_get_sample_rate(self->Client); device->UpdateSize = jack_get_buffer_size(self->Client); device->NumUpdates = 2; @@ -525,13 +525,13 @@ static ALCboolean ALCjackBackendFactory_init(ALCjackBackendFactory* UNUSED(self) if(!jack_load()) return ALC_FALSE; - if(!GetConfigValueBool("jack", "spawn-server", 1)) + if(!GetConfigValueBool("jack", "spawn-server", 0)) ClientOptions |= JackNoStartServer; client = jack_client_open("alsoft", ClientOptions, &status, NULL); if(client == NULL) { WARN("jack_client_open() failed, 0x%02x\n", status); - if((status&JackServerFailed)) + if((status&JackServerFailed) && !(ClientOptions&JackNoStartServer)) ERR("Unable to connect to JACK server\n"); return ALC_FALSE; } -- cgit v1.2.3