AAX SDK 2.6.1
Avid Audio Extensions Development Kit
Loading...
Searching...
No Matches
AAX_VComponentDescriptor.h
Go to the documentation of this file.
1/*================================================================================================*/
2/*
3 *
4 * Copyright 2013-2017, 2019, 2023 Avid Technology, Inc.
5 * All rights reserved.
6 *
7 * CONFIDENTIAL: this document contains confidential information of Avid. Do
8 * not disclose to any third party. Use of the information contained in this
9 * document is subject to an Avid SDK license.
10 *
11 */
12
19/*================================================================================================*/
20
21#ifndef AAX_VCOMPONENTDESCRIPTOR_H
22#define AAX_VCOMPONENTDESCRIPTOR_H
23
24// AAX Includes
26#include "AAX_IDma.h"
28
29// ACF Includes
30#include "acfunknown.h"
31#include "ACFPtr.h"
32
33// Standard Includes
34#include <set>
35
36
39class AAX_IACFComponentDescriptorV2;
40class IACFUnknown;
41
47{
48public:
51
53 AAX_Result AddReservedField ( AAX_CFieldIndex inFieldIndex, uint32_t inFieldType ) AAX_OVERRIDE;
60
61 AAX_Result AddDataInPort ( AAX_CFieldIndex inFieldIndex, uint32_t inPacketSize, AAX_EDataInPortType inPortType ) AAX_OVERRIDE;
62 AAX_Result AddAuxOutputStem ( AAX_CFieldIndex inFieldIndex, int32_t inStemFormat, const char inNameUTF8[]) AAX_OVERRIDE;
63 AAX_Result AddPrivateData ( AAX_CFieldIndex inFieldIndex, int32_t inDataSize, uint32_t inOptions ) AAX_OVERRIDE;
64 AAX_Result AddTemporaryData( AAX_CFieldIndex inFieldIndex, uint32_t inDataElementSize) AAX_OVERRIDE;
65 AAX_Result AddDmaInstance ( AAX_CFieldIndex inFieldIndex, AAX_IDma::EMode inDmaMode ) AAX_OVERRIDE;
66 AAX_Result AddMeters ( AAX_CFieldIndex inFieldIndex, const AAX_CTypeID* inMeterIDs, const uint32_t inMeterCount) AAX_OVERRIDE;
67 AAX_Result AddMIDINode ( AAX_CFieldIndex inFieldIndex, AAX_EMIDINodeType inNodeType, const char inNodeName[], uint32_t channelMask ) AAX_OVERRIDE;
68
69
83 AAX_CProcessProc inProcessProc,
84 AAX_IPropertyMap * inProperties = NULL,
85 AAX_CInstanceInitProc inInstanceInitProc = NULL,
86 AAX_CBackgroundProc inBackgroundProc = NULL,
87 AAX_CSelector * outProcID = NULL ) AAX_OVERRIDE;
91 const char inDLLFileNameUTF8[],
92 const char inProcessProcSymbol[],
93 AAX_IPropertyMap * inProperties = NULL,
94 const char inInstanceInitProcSymbol [] = NULL,
95 const char inBackgroundProcSymbol [] = NULL,
96 AAX_CSelector * outProcID = NULL ) AAX_OVERRIDE;
100 AAX_IPropertyMap* inProperties,
101 AAX_CSelector* outProcIDs = NULL,
102 int32_t inProcIDsSize = 0) AAX_OVERRIDE;
103
104
106
107private:
108 // Used for backwards compatibility with clients which do not support AddProcessProc
109 friend class AAX_VPropertyMap;
110 static const std::set<AAX_EProperty>& PointerPropertiesUsedByAddProcessProc();
111
112private:
113 ACFPtr<IACFUnknown> mUnkHost;
114 ACFPtr<AAX_IACFComponentDescriptor> mIACFComponentDescriptor;
115 ACFPtr<AAX_IACFComponentDescriptor_V2> mIACFComponentDescriptorV2;
116 ACFPtr<AAX_IACFComponentDescriptor_V3> mIACFComponentDescriptorV3;
117 std::set<AAX_IPropertyMap *> mPropertyMaps;
118};
119
120
121#endif // #ifndef _AAX_ICOMPONENTDESCRIPTOR_H_
AAX_EMIDINodeType
MIDI node types.
Definition: AAX_Enums.h:980
AAX_EDataInPortType
Property value for whether a data in port should be buffered or not.
Definition: AAX_Enums.h:1063
Description interface for an AAX plug-in algorithm.
int32_t AAX_Result
Definition: AAX.h:334
#define AAX_OVERRIDE
override keyword macro
Definition: AAX.h:151
uint32_t AAX_CTypeID
Matches type of OSType used in classic plugins.
Definition: AAX.h:333
AAX_CIndex AAX_CFieldIndex
Not used by AAX plug-ins (except in AAX_FIELD_INDEX macro)
Definition: AAX.h:346
uint32_t AAX_CSelector
Definition: AAX.h:327
AAX_EProperty
The list of properties that can be added to an AAX_IPropertyMap.
Definition: AAX_Properties.h:69
Versioned description interface for an AAX plug-in algorithm callback.
Cross-platform interface for access to the host's direct memory access (DMA) facilities.
AAX_Component< void >::CInstanceInitProc AAX_CInstanceInitProc
A user-defined callback that AAX calls to notify the component that an instance is being added or rem...
Definition: AAX_Callbacks.h:137
AAX_Component< void >::CBackgroundProc AAX_CBackgroundProc
A user-defined callback that AAX calls in the AAX Idle time.
Definition: AAX_Callbacks.h:148
AAX_Component< void >::CProcessProc AAX_CProcessProc
A user-defined callback that AAX calls to process data packets and/or audio.
Definition: AAX_Callbacks.h:101
COM compatible IUnknown C++ interface.
Definition: AAX_ACFInterface.doxygen:252
Versioned description interface for an AAX plug-in algorithm callback.
Definition: AAX_IACFComponentDescriptor.h:40
Versioned description interface for an AAX plug-in algorithm callback.
Definition: AAX_IACFComponentDescriptor.h:76
Versioned description interface for an AAX plug-in algorithm callback.
Definition: AAX_IACFComponentDescriptor.h:84
Description interface for an AAX plug-in component.
Definition: AAX_IComponentDescriptor.h:44
Cross-platform interface for access to the host's direct memory access (DMA) facilities.
Definition: AAX_IDma.h:50
Generic plug-in description property map.
Definition: AAX_IPropertyMap.h:56
Version-managed concrete AAX_IComponentDescriptor class.
Definition: AAX_VComponentDescriptor.h:47
AAX_Result AddAudioOut(AAX_CFieldIndex inFieldIndex) AAX_OVERRIDE
Subscribes an audio output context field.
IACFUnknown * GetIUnknown(void) const
AAX_Result AddMIDINode(AAX_CFieldIndex inFieldIndex, AAX_EMIDINodeType inNodeType, const char inNodeName[], uint32_t channelMask) AAX_OVERRIDE
Adds a MIDI node field to the plug-in's context.
AAX_Result AddDataInPort(AAX_CFieldIndex inFieldIndex, uint32_t inPacketSize, AAX_EDataInPortType inPortType) AAX_OVERRIDE
Adds a custom data port to the algorithm context.
virtual AAX_Result AddProcessProc_Native(AAX_CProcessProc inProcessProc, AAX_IPropertyMap *inProperties=NULL, AAX_CInstanceInitProc inInstanceInitProc=NULL, AAX_CBackgroundProc inBackgroundProc=NULL, AAX_CSelector *outProcID=NULL) AAX_OVERRIDE
Registers an algorithm processing entrypoint (process procedure) for the native architecture.
AAX_Result Clear() AAX_OVERRIDE
Clears the descriptor.
AAX_Result AddClock(AAX_CFieldIndex inFieldIndex) AAX_OVERRIDE
Subscribes a clock context field.
AAX_Result AddAuxOutputStem(AAX_CFieldIndex inFieldIndex, int32_t inStemFormat, const char inNameUTF8[]) AAX_OVERRIDE
Adds an auxiliary output stem for a plug-in.
AAX_Result AddAudioIn(AAX_CFieldIndex inFieldIndex) AAX_OVERRIDE
Subscribes an audio input context field.
AAX_Result AddSampleRate(AAX_CFieldIndex inFieldIndex) AAX_OVERRIDE
Subscribes a sample rate context field.
AAX_IPropertyMap * NewPropertyMap() const AAX_OVERRIDE
Creates a new, empty property map.
virtual AAX_Result AddProcessProc(AAX_IPropertyMap *inProperties, AAX_CSelector *outProcIDs=NULL, int32_t inProcIDsSize=0) AAX_OVERRIDE
Registers one or more algorithm processing entrypoints (process procedures)
AAX_Result AddTemporaryData(AAX_CFieldIndex inFieldIndex, uint32_t inDataElementSize) AAX_OVERRIDE
Adds a block of data to a context that is not saved between callbacks and is scaled by the system buf...
AAX_Result AddSideChainIn(AAX_CFieldIndex inFieldIndex) AAX_OVERRIDE
Subscribes a side-chain input context field.
~AAX_VComponentDescriptor() AAX_OVERRIDE
virtual AAX_Result AddProcessProc_TI(const char inDLLFileNameUTF8[], const char inProcessProcSymbol[], AAX_IPropertyMap *inProperties=NULL, const char inInstanceInitProcSymbol[]=NULL, const char inBackgroundProcSymbol[]=NULL, AAX_CSelector *outProcID=NULL) AAX_OVERRIDE
Registers an algorithm processing entrypoint (process procedure) for the native architecture.
AAX_Result AddPrivateData(AAX_CFieldIndex inFieldIndex, int32_t inDataSize, uint32_t inOptions) AAX_OVERRIDE
Adds a private data port to the algorithm context.
AAX_Result AddDmaInstance(AAX_CFieldIndex inFieldIndex, AAX_IDma::EMode inDmaMode) AAX_OVERRIDE
Adds a DMA field to the plug-in's context.
AAX_VComponentDescriptor(IACFUnknown *pUnkHost)
AAX_Result AddReservedField(AAX_CFieldIndex inFieldIndex, uint32_t inFieldType) AAX_OVERRIDE
Subscribes a context field to host-provided services or information.
AAX_Result AddMeters(AAX_CFieldIndex inFieldIndex, const AAX_CTypeID *inMeterIDs, const uint32_t inMeterCount) AAX_OVERRIDE
Adds a meter field to the plug-in's context.
AAX_Result AddAudioBufferLength(AAX_CFieldIndex inFieldIndex) AAX_OVERRIDE
Subscribes a buffer length context field.
AAX_IPropertyMap * DuplicatePropertyMap(AAX_IPropertyMap *inPropertyMap) const AAX_OVERRIDE
Creates a new property map using an existing property map.
Version-managed concrete AAX_IPropertyMap class.
Definition: AAX_VPropertyMap.h:46