mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +00:00
Re-named AudioProcessor in previous commit to not be plug-in format specific
This commit is contained in:
parent
4d0b1167f0
commit
d37187c959
2 changed files with 10 additions and 10 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue