...
 
Commits (1)
......@@ -69,8 +69,8 @@ CXXFLAGS += -fvisibility-inlines-hidden
endif
BUILD_C_FLAGS = $(BASE_FLAGS) -std=c99 -std=gnu99 $(CFLAGS)
# Changed to -std=c++17 and added @conanbuildinfo.args. Lyberta
BUILD_CXX_FLAGS = $(BASE_FLAGS) -std=c++17 @../../Build/conanbuildinfo.args $(CXXFLAGS) $(CPPFLAGS)
# Changed to -std=c++2a and added @conanbuildinfo.args. Lyberta
BUILD_CXX_FLAGS = $(BASE_FLAGS) -std=c++2a @../../Build/conanbuildinfo.args $(CXXFLAGS) $(CPPFLAGS)
# Added OpenCL. Lyberta
LINK_FLAGS = $(LINK_OPTS) -Wl,--no-undefined -lOpenCL $(LDFLAGS)
......
......@@ -37,19 +37,18 @@ The following formats are provided:
Build dependencies:
* Git
* G++ 8 or newer
* Conan 1.2 or newer
* Conan 1.4.4 or newer
To install dependencies on Debian Testing you would invoke:
# apt install git g++-8 python-pip
# apt install git g++ python-pip
$ pip install conan
If you didn't have Conan installed before, you probably need to configure the default profile:
$ conan profile new --detect default
$ conan profile update settings.compiler.version=8 default
$ conan profile update settings.compiler.libcxx=libstdc++11 default
$ conan profile update settings.cppstd=17 default
$ conan profile update settings.cppstd=20 default
Add official ftz repository to Conan:
......
......@@ -60,7 +60,7 @@ void PluginBaseTemplate<PluginSettings>::InitParameter(BaseParameterIndex index,
parameter.symbol = "master_volume";
parameter.ranges.min = 0.0f;
parameter.ranges.max = 1.0f;
parameter.ranges.def = PluginSettings::DefaultGain.GetValue();
parameter.ranges.def = PluginSettings::DefaultGain;
return;
}
case BaseParameterIndex::Pan:
......@@ -137,7 +137,7 @@ float PluginBaseTemplate<PluginSettings>::GetParameterValue(const Synth& synth,
{
case BaseParameterIndex::MasterVolume:
{
return amp.GetGain().GetValue();
return amp.GetGain();
}
case BaseParameterIndex::Pan:
{
......
......@@ -85,7 +85,7 @@ void NoisePlugin::initParameter(std::uint32_t index, Parameter& parameter)
parameter.symbol = "master_volume";
parameter.ranges.min = 0.0f;
parameter.ranges.max = 1.0f;
parameter.ranges.def = AliasedSettings::DefaultGain.GetValue();
parameter.ranges.def = AliasedSettings::DefaultGain;
return;
}
case ParameterIndex::Pan:
......@@ -150,7 +150,7 @@ float NoisePlugin::getParameterValue(std::uint32_t index) const
{
case ParameterIndex::MasterVolume:
{
return amp.GetGain().GetValue();
return amp.GetGain();
}
case ParameterIndex::Pan:
{
......