Revert "pcm/Convert: add option to enable the integer-only dsd2pcm implementation"

This reverts commit c84bae739a.  A
configuration option is not necessary, because the PcmConvert
constructor knows already whether integer or floating point is needed.
This commit is contained in:
Max Kellermann
2020-01-17 19:11:10 +01:00
parent c84bae739a
commit 8db86e2820
5 changed files with 0 additions and 42 deletions
-1
View File
@@ -79,7 +79,6 @@ enum class ConfigOption {
DESPOTIFY_USER,
DESPOTIFY_PASSWORD,
DESPOTIFY_HIGH_BITRATE,
DSD2PCM_CONVERTER,
MAX
};
-1
View File
@@ -75,7 +75,6 @@ const ConfigTemplate config_param_templates[] = {
{ "despotify_user", false, true },
{ "despotify_password", false, true },
{ "despotify_high_bitrate", false, true },
{ "dsd2pcm_converter" },
};
static constexpr unsigned n_config_param_templates =
-19
View File
@@ -19,35 +19,16 @@
#include "Convert.hxx"
#include "ConfiguredResampler.hxx"
#include "config/Data.hxx"
#include "util/ConstBuffer.hxx"
#include "util/StringAPI.hxx"
#include <stdexcept>
#include <assert.h>
#ifdef ENABLE_DSD
static bool dsd2pcm_integer = false;
#endif
void
pcm_convert_global_init(const ConfigData &config)
{
pcm_resampler_global_init(config);
#ifdef ENABLE_DSD
dsd2pcm_integer = config.With(ConfigOption::DSD2PCM_CONVERTER, [](const char *s){
if (s == nullptr)
return false;
else if (StringIsEqual(s, "float"))
return false;
else if (StringIsEqual(s, "integer"))
return true;
else
throw std::runtime_error("Unrecognized value");
});
#endif
}
PcmConvert::PcmConvert(const AudioFormat _src_format,