don't send audio to muted clients

This commit is contained in:
badaix 2017-03-14 22:24:06 +01:00
parent 69747ec316
commit 39c133e41a
4 changed files with 19 additions and 1 deletions

View file

@ -68,6 +68,7 @@ int main(int argc, char* argv[])
Value<size_t> streamBufferValue("", "streamBuffer", "Default stream read buffer [ms]", settings.streamReadMs, &settings.streamReadMs);
Value<int> bufferValue("b", "buffer", "Buffer [ms]", settings.bufferMs, &settings.bufferMs);
Switch muteSwitch("", "sendToMuted", "Send audio to muted clients", &settings.sendAudioToMutedClients);
Implicit<int> daemonOption("d", "daemon", "Daemonize\noptional process priority [-20..19]", 0, &processPriority);
Value<string> userValue("", "user", "the user[:group] to run snapserver as when daemonized", "");
@ -81,6 +82,7 @@ int main(int argc, char* argv[])
.add(codecValue)
.add(streamBufferValue)
.add(bufferValue)
.add(muteSwitch)
#ifdef HAS_DAEMON
.add(daemonOption)
.add(userValue)