23 #ifndef AAX_CMONOLITHICPARAMETERS_H
24 #define AAX_CMONOLITHICPARAMETERS_H
49 #define kMaxAdditionalMIDINodes 15
52 #define kMaxAuxOutputStems 32
55 #define kSynchronizedParameterQueueSize 32
227 typedef std::pair<AAX_CParamID const, const AAX_IParameterValue*>
TParamValPair;
324 mElem[mSize++] = inElem;
328 void Append(
const SParamValList& inOther)
331 for (int32_t i = 0; i < inOther.mSize; ++i)
333 Add(inOther.mElem[i]);
337 void Append(
const std::list<TParamValPair*>& inOther)
339 AAX_ASSERT(sCap >= mSize + (int64_t)inOther.size());
340 for (std::list<TParamValPair*>::const_iterator iter = inOther.begin(); iter != inOther.end(); ++iter)
351 if (NULL == val) {
break; }
358 std::memset(mElem, 0x0,
sizeof(mElem));
363 typedef std::set<const AAX_IParameter*> TParamSet;
364 typedef std::pair<int64_t, std::list<TParamValPair*> > TNumberedParamStateList;
369 SParamValList GetUpdatesForState(int64_t inTargetStateNum);
370 void DeleteUsedParameterChanges();
373 std::set<std::string> mSynchronizedParameters;
374 int64_t mStateCounter;
375 TParamSet mDirtyParameters;
376 TNumberedStateListQueue mQueuedParameterChanges;
377 TNumberedStateListQueue mFinishedParameterChanges;
378 TParamValPairQueue mFinishedParameterValues;
const char * AAX_CParamID
Parameter identifier.
Definition: AAX.h:352
int32_t AAX_Result
Definition: AAX.h:337
uint8_t AAX_CBoolean
Cross-compiler boolean type used by AAX interfaces.
Definition: AAX.h:329
#define AAX_CALLBACK
Definition: AAX.h:285
int64_t AAX_CTimestamp
Time stamp value. Measured against the DAE clock (see AAX_IComponentDescriptor::AddClock() )
Definition: AAX.h:331
#define AAX_OVERRIDE
override keyword macro
Definition: AAX.h:141
uint32_t AAX_CTypeID
Matches type of OSType used in classic plugins.
Definition: AAX.h:336
AAX_CIndex AAX_CFieldIndex
Not used by AAX plug-ins (except in AAX_FIELD_INDEX macro)
Definition: AAX.h:349
#define AAX_ASSERT(condition)
Asserts that a condition is true and logs an error if the condition is false.
Definition: AAX_Assert.h:268
Atomic, non-blocking queue.
A default implementation of the AAX_IeffectParameters interface.
AAX_EUpdateSource
Source for values passed into UpdateParameterNormalizedValue().
Definition: AAX_Enums.h:1028
AAX_EStemFormat
Stem format definitions.
Definition: AAX_Enums.h:232
@ AAX_eStemFormat_Mono
M.
Definition: AAX_Enums.h:234
@ AAX_eStemFormat_None
Definition: AAX_Enums.h:264
Description interface for an AAX plug-in algorithm.
Description interface for an effect's (plug-in type's) components.
Declaration of the base MIDI Node interface.
The base interface for all normalizable plug-in parameters.
Generic plug-in description property map.
#define kSynchronizedParameterQueueSize
Definition: AAX_CMonolithicParameters.h:55
#define kMaxAuxOutputStems
Definition: AAX_CMonolithicParameters.h:52
#define kMaxAdditionalMIDINodes
Definition: AAX_CMonolithicParameters.h:49
Default implementation of the AAX_IEffectParameters interface.
Definition: AAX_CEffectParameters.h:66
Description interface for an effect's (plug-in type's) components.
Definition: AAX_IEffectDescriptor.h:50
Interface for accessing information in a MIDI node.
Definition: AAX_IMIDINode.h:40
The base interface for all normalizable plug-in parameters.
Definition: AAX_IParameter.h:140
Definition: AAX_IPointerQueue.h:35
virtual value_type Pop()=0
Information used to describe the instrument.
Definition: AAX_CMonolithicParameters.h:64
AAX_CBoolean mMultiMonoSupport
Definition: AAX_CMonolithicParameters.h:110
AAX_CTypeID mProductID
Product ID
Definition: AAX_CMonolithicParameters.h:100
AAX_EStemFormat mHybridOutputStemFormat
Hybrid output stem format
Definition: AAX_CMonolithicParameters.h:91
int32_t mNumAdditionalInputMIDINodes
Number of additional input MIDI Nodes. These will all share the same channelMask and base MIDINodeNam...
Definition: AAX_CMonolithicParameters.h:74
bool mUseHostGeneratedGUI
Allow Pro Tools or other host to generate a generic GUI. This can be useful for early development.
Definition: AAX_CMonolithicParameters.h:97
uint32_t mGlobalMIDIEventMask
Global MIDI node event mask of AAX_EMidiGlobalNodeSelectors, if used.
Definition: AAX_CMonolithicParameters.h:68
const char * mAuxOutputStemNames[kMaxAuxOutputStems]
Names of the aux output stems.
Definition: AAX_CMonolithicParameters.h:86
int32_t mNumMeters
Number of meter taps used by the instrument. Must match the size of mMeterIDs.
Definition: AAX_CMonolithicParameters.h:81
bool mNeedsInputMIDI
Does the instrument use a local MIDI input node?
Definition: AAX_CMonolithicParameters.h:71
AAX_CTypeID mPluginID
Plug-In (Type) ID
Definition: AAX_CMonolithicParameters.h:101
bool mCanBypass
Can this instrument be bypassed?
Definition: AAX_CMonolithicParameters.h:98
const char * mTransportMIDINodeName
Name of the MIDI transport node, if used.
Definition: AAX_CMonolithicParameters.h:78
const AAX_CTypeID * mMeterIDs
Array of meter IDs.
Definition: AAX_CMonolithicParameters.h:82
AAX_CTypeID mAudiosuiteID
AudioSuite ID
Definition: AAX_CMonolithicParameters.h:102
AAX_CTypeID mManufacturerID
Manufacturer ID
Definition: AAX_CMonolithicParameters.h:99
AAX_SInstrumentSetupInfo()
Default constructor.
Definition: AAX_CMonolithicParameters.h:118
AAX_EStemFormat mOutputStemFormat
Output stem format
Definition: AAX_CMonolithicParameters.h:96
const char * mInputMIDINodeName
Name of the MIDI input node, if used.
Definition: AAX_CMonolithicParameters.h:72
int32_t mNumAuxOutputStems
Number of aux output stems for the plug-in.
Definition: AAX_CMonolithicParameters.h:85
uint32_t mInputMIDIChannelMask
MIDI input node channel mask, if used.
Definition: AAX_CMonolithicParameters.h:73
const char * mGlobalMIDINodeName
Name of the global MIDI node, if used.
Definition: AAX_CMonolithicParameters.h:67
bool mNeedsGlobalMIDI
Does the instrument use a global MIDI input node?
Definition: AAX_CMonolithicParameters.h:66
AAX_EStemFormat mInputStemFormat
Input stem format
Definition: AAX_CMonolithicParameters.h:95
AAX_EStemFormat mHybridInputStemFormat
Hybrid input stem format
Definition: AAX_CMonolithicParameters.h:90
bool mNeedsTransport
Does the instrument use the transport interface?
Definition: AAX_CMonolithicParameters.h:77
AAX_EStemFormat mAuxOutputStemFormats[kMaxAuxOutputStems]
Stem formats for the output stems.
Definition: AAX_CMonolithicParameters.h:87
Utility struct for AAX_CMonolithicParameters.
Definition: AAX_CMonolithicParameters.h:160
AAX_CMonolithicParameters * mMonolithicParametersPtr
A pointer to the instrument's data model.
Definition: AAX_CMonolithicParameters.h:167
Information used to parameterize AAX_CMonolithicParameters::RenderAudio()
Definition: AAX_CMonolithicParameters.h:178
float ** mAudioOutputs
Audio output buffers, including any aux output stems.
Definition: AAX_CMonolithicParameters.h:180
AAX_IMIDINode * mGlobalNode
Buffered global MIDI input node. Used for global events like beat updates in metronomes.
Definition: AAX_CMonolithicParameters.h:185
AAX_CTimestamp * mClock
Pointer to the global running time clock.
Definition: AAX_CMonolithicParameters.h:182
AAX_IMIDINode * mTransportNode
Transport MIDI node. Used for querying the state of the MIDI transport.
Definition: AAX_CMonolithicParameters.h:186
float ** mMeters
Array of meter taps. One meter value should be entered per tap for each render call.
Definition: AAX_CMonolithicParameters.h:191
int32_t * mNumSamples
Number of samples in each buffer. Bounded as per AAE_EAudioBufferLengthNative. The exact value can va...
Definition: AAX_CMonolithicParameters.h:181
int64_t * mCurrentStateNum
State counter.
Definition: AAX_CMonolithicParameters.h:193
float ** mAudioInputs
Audio input buffers.
Definition: AAX_CMonolithicParameters.h:179
AAX_IMIDINode * mInputNode
Buffered local MIDI input node. Used for incoming MIDI messages directed to the instrument.
Definition: AAX_CMonolithicParameters.h:184
AAX_IMIDINode * mAdditionalInputMIDINodes[kMaxAdditionalMIDINodes]
List of additional input MIDI nodes, if your plugin needs them.
Definition: AAX_CMonolithicParameters.h:187
AAX_SInstrumentPrivateData * mPrivateData
Struct containing private data relating to the instance. You should not need to use this data.
Definition: AAX_CMonolithicParameters.h:189
Extension of the AAX_CEffectParameters class for monolithic VIs and effects.
Definition: AAX_CMonolithicParameters.h:221
virtual void RenderAudio(AAX_SInstrumentRenderInfo *ioRenderInfo, const TParamValPair *inSynchronizedParamValues[], int32_t inNumSynchronizedParamValues)
Definition: AAX_CMonolithicParameters.h:244
void AddSynchronizedParameter(const AAX_IParameter &inParameter)
Definition: AAX_CMonolithicParameters.cpp:40
AAX_CMonolithicParameters(void)
Definition: AAX_CMonolithicParameters.cpp:22
AAX_Result ResetFieldData(AAX_CFieldIndex iFieldIndex, void *oData, uint32_t iDataSize) const AAX_OVERRIDE
Called by the host to reset a private data field in the plug-in's algorithm.
Definition: AAX_CMonolithicParameters.cpp:104
AAX_Result GenerateCoefficients() AAX_OVERRIDE
Generates and dispatches new coefficient packets.
Definition: AAX_CMonolithicParameters.cpp:65
static AAX_Result StaticDescribe(AAX_IEffectDescriptor *ioDescriptor, const AAX_SInstrumentSetupInfo &setupInfo)
Definition: AAX_CMonolithicParameters.cpp:132
AAX_Result UpdateParameterNormalizedValue(AAX_CParamID iParamID, double aValue, AAX_EUpdateSource inSource) AAX_OVERRIDE
Updates a single parameter's state to its current value.
Definition: AAX_CMonolithicParameters.cpp:47
std::pair< AAX_CParamID const, const AAX_IParameterValue * > TParamValPair
Definition: AAX_CMonolithicParameters.h:227
AAX_Result TimerWakeup() AAX_OVERRIDE
Periodic wakeup callback for idle-time operations.
Definition: AAX_CMonolithicParameters.cpp:123
~AAX_CMonolithicParameters(void) AAX_OVERRIDE
Definition: AAX_CMonolithicParameters.cpp:34
static void AAX_CALLBACK StaticRenderAudio(AAX_SInstrumentRenderInfo *const inInstancesBegin[], const void *inInstancesEnd)
Definition: AAX_CMonolithicParameters.cpp:236