mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 15:46:42 +02:00
add flag for --disable-audio-cache
This commit is contained in:
parent
3a8023ab93
commit
4cb2b718be
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,7 @@ LibrespotStream::LibrespotStream(PcmListener* pcmListener, boost::asio::io_conte
|
|||
string username = uri_.getQuery("username", "");
|
||||
string password = uri_.getQuery("password", "");
|
||||
string cache = uri_.getQuery("cache", "");
|
||||
bool disable_audio_cache = (uri_.getQuery("disable_audio_cache", "false") == "true");
|
||||
string volume = uri_.getQuery("volume", "100");
|
||||
string bitrate = uri_.getQuery("bitrate", "320");
|
||||
string devicename = uri_.getQuery("devicename", "Snapcast");
|
||||
|
@ -56,6 +57,8 @@ LibrespotStream::LibrespotStream(PcmListener* pcmListener, boost::asio::io_conte
|
|||
params_ += " --bitrate " + bitrate + " --backend pipe";
|
||||
if (!cache.empty())
|
||||
params_ += " --cache \"" + cache + "\"";
|
||||
if (disable_audio_cache)
|
||||
params_ += " --disable-audio-cache";
|
||||
if (!volume.empty())
|
||||
params_ += " --initial-volume " + volume;
|
||||
if (!onevent.empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue