diff --git a/ChangeLog b/ChangeLog index b7db42da..da36fbf2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18660,3 +18660,8 @@ 2019-05-13 Patrick Linstruth * Fixed regression in rdlibrary(1) display when realtime filtering is disabled. +2019-05-14 Fred Gleason + * Fixed a bug in the Webget service that caused audio to be + generated with a normalization level of -100 dBFS. + * Fixed a bug in the Webget service that caused all audio to + be generated as monoaural. diff --git a/web/webget/webget.cpp b/web/webget/webget.cpp index e1b53aac..572bc99f 100644 --- a/web/webget/webget.cpp +++ b/web/webget/webget.cpp @@ -134,6 +134,11 @@ void MainObject::ripcConnectedData(bool state) XmlExit("missing \"title\"",400,"webget.cpp",LINE_NUMBER); } + int channels; + if(!webget_post->getValue("channels",&channels)) { + XmlExit("missing \"channels\"",400,"webget.cpp",LINE_NUMBER); + } + int samprate; if(!webget_post->getValue("samprate",&samprate)) { XmlExit("missing \"samprate\"",400,"webget.cpp",LINE_NUMBER); @@ -184,11 +189,11 @@ void MainObject::ripcConnectedData(bool state) // RDSettings *settings=new RDSettings(); settings->setFormat((RDSettings::Format)format); - settings->setChannels(1); + settings->setChannels(channels); settings->setSampleRate(samprate); settings->setBitRate(bitrate); settings->setQuality(quality); - settings->setNormalizationLevel(-100); + settings->setNormalizationLevel(-1); // // Generate Metadata