Browse Source

Re-named AudioProcessor in previous commit to not be plug-in format specific

tags/2021-05-28
hogliux 7 years ago
parent
commit
d37187c959
2 changed files with 10 additions and 10 deletions
  1. +4
    -4
      modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp
  2. +6
    -6
      modules/juce_audio_processors/processors/juce_AudioProcessor.h

+ 4
- 4
modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp View File

@@ -1740,13 +1740,13 @@ namespace AAXClasses
if (curveType != AudioProcessor::CurveData::Type::Unknown)
{
auto& audioProcessor = getPluginInstance();
auto curve = audioProcessor.getAAXCurve (curveType);
auto curve = audioProcessor.getResponseCurve (curveType);
if (curve.curve)
{
if (oValues != nullptr && iValues != nullptr)
{
for (int i = 0; i < iNumValues; ++i)
for (uint32_t i = 0; i < iNumValues; ++i)
oValues[i] = curve.curve (iValues[i]);
}
@@ -1764,7 +1764,7 @@ namespace AAXClasses
if (curveType != AudioProcessor::CurveData::Type::Unknown)
{
auto& audioProcessor = getPluginInstance();
auto curve = audioProcessor.getAAXCurve (curveType);
auto curve = audioProcessor.getResponseCurve (curveType);
if (curve.curve && curve.xMeterID.isNotEmpty() && curve.yMeterID.isNotEmpty())
{
@@ -1785,7 +1785,7 @@ namespace AAXClasses
if (curveType != AudioProcessor::CurveData::Type::Unknown)
{
auto& audioProcessor = getPluginInstance();
auto curve = audioProcessor.getAAXCurve (curveType);
auto curve = audioProcessor.getResponseCurve (curveType);
if (curve.curve)
{


+ 6
- 6
modules/juce_audio_processors/processors/juce_AudioProcessor.h View File

@@ -1339,10 +1339,10 @@ public:
bool idForAudioSuite) const;
//==============================================================================
/** AAX support sharing curve data with the host so that it can display this curve
on a console or in the mixer panel. For example, ProTools allows you to see the
total EQ curve of a track. It does this by interrogating each plug-in for their
internal EQ curve. */
/** Some plug-ins support sharing response curve data with the host so that it can
display this curve on a console or in the mixer panel. For example, ProTools
allows you to see the total EQ curve of a track. It does this by interrogating
each plug-in for their internal EQ curve. */
struct CurveData
{
enum class Type : int
@@ -1358,13 +1358,13 @@ public:
Range<float> xRange, yRange; // the data range of your curve
// For some curve types, your plug-in may already measure the current input and output values.
// An AAX host can use to indicate where on the curve the current signal is (for example
// An host can use to indicate where on the curve the current signal is (for example
// by putting a dot on the curve). Simply leave these strings empty if you do not want to
// support this.
String xMeterID, yMeterID;
};
virtual CurveData getAAXCurve (CurveData::Type /*curveType*/) const { return {}; }
virtual CurveData getResponseCurve (CurveData::Type /*curveType*/) const { return {}; }
//==============================================================================
/** Not for public use - this is called before deleting an editor component. */


Loading…
Cancel
Save