* Copyright 2024 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
* Copyright 2024 Steinberg Media Technologies GmbH
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
// File name based on "AudioEffectX" and "AudioEffect". Since we have a struct called "AEffect", logically there's a struct AEffectX right? Don't see any references to it though...
#pragma once
#include"aeffect.h"
#include"vstpin.h"
#include"vsttime.h"
#include"vstversion.h"
enumAEffectXFlags{
AEffectFlagCanDoubleReplacing=1<<12,// Only available in 2.4 or later. Name based on AudioEffect::canDoubleReplacing
};
enumAEffectXOpCodes{
__AEffectXOpCode_Lowest=0x18,// Starts at highest OpCode from AEffect.
AEffectXOpCode_19,
audioEffectProcessEvents,// Process Events
audioEffectIsParameterAutomatable,// Is Parameter Automatable?
audioEffectConvertStringToParameter,// Convert String to Parameter index
audioEffectGetProgramNameIndexed,
AEffectXOpCode_1E,
AEffectXOpCode_1F,
AEffectXOpCode_20,
audioEffectGetInputProperties,// Get Input Properties
audioEffectGetOutputProperties,// Get Output Properties
audioEffectGetPlugCategory,// Get "Plug" Category
AEffectXOpCode_24,
AEffectXOpCode_25,
AEffectXOpCode_26,
AEffectXOpCode_27,
AEffectXOpCode_28,
AEffectXOpCode_29,
audioEffectSetSpeakerArrangement,// Set Speaker Arrangment
AEffectXOpCode_2B,
audioEffectBypass,// Bypass
audioEffectGetEffectName,// Get Effect Name
AEffectXOpCode_2E,
audioEffectGetVendorString,// Get Vendor Name
audioEffectGetProductString,// Get Product Name
audioEffectGetVendorVersion,// Get Vendor Version
audioEffectVendorSpecific,// Seems to be used rarely to implement host-specific custom behavior.