Commit 9fcd9179 authored by Lyberta's avatar Lyberta

Updated to new ftz Audio API.

parent fcba2f90
......@@ -5,7 +5,7 @@
#pragma once
#include <ftz/Audio/SampleFormat.h>
#include <ftz/Audio/BasicSampleFormat.h>
#include <ftz/Audio/Time.h>
#include "DistrhoPlugin.hpp"
......@@ -16,13 +16,14 @@ namespace DISTRHO
/// \brief Version of the plugins.
const std::uint32_t PluginVersion = d_version(0, 2, 0);
template <typename T>
template <ftz::Audio::CalculationType CT>
struct Settings
{
using CalcType = T; ///< Type used in calculations.
using CalcType = CT; ///< Type used in calculations.
/// \brief Sample format used by aliased DPF plugins.
using SampleFormat = ftz::Audio::SampleFormat<float, CalcType>;
using SampleFormat = ftz::Audio::BasicSampleFormat<
ftz::Audio::BasicStorageType<float>, CalcType>;
/// \brief Default gain of the amplifier.
static constexpr auto DefaultGain = ftz::Audio::Gain<CalcType>{0.25};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment