mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-05 04:11:50 +02:00
Add cache parameter to Librespot integration
This commit is contained in:
parent
2b3f08aa5f
commit
d34fbef34f
3 changed files with 5 additions and 2 deletions
|
@ -35,6 +35,7 @@ SpotifyStream::SpotifyStream(PcmListener* pcmListener, const StreamUri& uri) : P
|
|||
|
||||
string username = uri_.getQuery("username", "");
|
||||
string password = uri_.getQuery("password", "");
|
||||
string cache = uri_.getQuery("cache", "");
|
||||
string bitrate = uri_.getQuery("bitrate", "320");
|
||||
string devicename = uri_.getQuery("devicename", "Snapcast");
|
||||
string onstart = uri_.getQuery("onstart", "");
|
||||
|
@ -47,6 +48,8 @@ SpotifyStream::SpotifyStream(PcmListener* pcmListener, const StreamUri& uri) : P
|
|||
if (!username.empty() && !password.empty())
|
||||
params_ += " --username \"" + username + "\" --password \"" + password + "\"";
|
||||
params_ += " --bitrate " + bitrate + " --backend pipe";
|
||||
if (!cache.empty())
|
||||
params_ += " --cache \"" + cache + "\"";
|
||||
if (!onstart.empty())
|
||||
params_ += " --onstart \"" + onstart + "\"";
|
||||
if (!onstop.empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue