mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 08:06:41 +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 username = uri_.getQuery("username", "");
|
||||||
string password = uri_.getQuery("password", "");
|
string password = uri_.getQuery("password", "");
|
||||||
string cache = uri_.getQuery("cache", "");
|
string cache = uri_.getQuery("cache", "");
|
||||||
|
bool disable_audio_cache = (uri_.getQuery("disable_audio_cache", "false") == "true");
|
||||||
string volume = uri_.getQuery("volume", "100");
|
string volume = uri_.getQuery("volume", "100");
|
||||||
string bitrate = uri_.getQuery("bitrate", "320");
|
string bitrate = uri_.getQuery("bitrate", "320");
|
||||||
string devicename = uri_.getQuery("devicename", "Snapcast");
|
string devicename = uri_.getQuery("devicename", "Snapcast");
|
||||||
|
@ -56,6 +57,8 @@ LibrespotStream::LibrespotStream(PcmListener* pcmListener, boost::asio::io_conte
|
||||||
params_ += " --bitrate " + bitrate + " --backend pipe";
|
params_ += " --bitrate " + bitrate + " --backend pipe";
|
||||||
if (!cache.empty())
|
if (!cache.empty())
|
||||||
params_ += " --cache \"" + cache + "\"";
|
params_ += " --cache \"" + cache + "\"";
|
||||||
|
if (disable_audio_cache)
|
||||||
|
params_ += " --disable-audio-cache";
|
||||||
if (!volume.empty())
|
if (!volume.empty())
|
||||||
params_ += " --initial-volume " + volume;
|
params_ += " --initial-volume " + volume;
|
||||||
if (!onevent.empty())
|
if (!onevent.empty())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue