2019-05-14 Fred Gleason <fredg@paravelsystems.com>

* 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.
This commit is contained in:
Fred Gleason 2019-05-14 15:10:09 -04:00
parent e9a0d3c16a
commit 1159caad4a
2 changed files with 12 additions and 2 deletions

View File

@ -18660,3 +18660,8 @@
2019-05-13 Patrick Linstruth <patrick@deltecent.com>
* Fixed regression in rdlibrary(1) display when
realtime filtering is disabled.
2019-05-14 Fred Gleason <fredg@paravelsystems.com>
* 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.

View File

@ -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