mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-09 15:16:42 +02:00
New setting "streaming_client.initial_volume"
This commit is contained in:
parent
fd4d82126f
commit
30fd1520cc
5 changed files with 27 additions and 0 deletions
|
@ -767,6 +767,10 @@ void Server::onMessageReceived(StreamSession* streamSession, const msg::BaseMess
|
|||
}
|
||||
|
||||
ClientInfoPtr client = group->getClient(streamSession->clientId);
|
||||
if (newGroup)
|
||||
{
|
||||
client->config.volume.percent = settings_.streamingclient.initialVolume;
|
||||
}
|
||||
|
||||
LOG(DEBUG, LOG_TAG) << "Sending ServerSettings to " << streamSession->clientId << "\n";
|
||||
auto serverSettings = make_shared<msg::ServerSettings>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue