| AAX SDK 2.6.1 Avid Audio Extensions Development Kit

- Welcome
- Manual
- Classes
- Files
- Lists
- Support

- File List
- File Members

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
25#include "AAX_IComponentDescriptor.h"
26#include "AAX_IDma.h"
27#include "AAX_IACFComponentDescriptor.h"
28
29// ACF Includes
30#include "acfunknown.h"
31#include "ACFPtr.h"
32
33// Standard Includes
34#include <set>
35
36
37 class AAX_IPropertyMap;
38 class AAX_IACFComponentDescriptor;
39 class AAX_IACFComponentDescriptorV2;
40 class IACFUnknown;
41
46 class AAX_VComponentDescriptor : public AAX_IComponentDescriptor
47{
48 public:
49 AAX_VComponentDescriptor ( IACFUnknown * pUnkHost );
50 ~AAX_VComponentDescriptor () AAX_OVERRIDE;
51
52 AAX_Result Clear () AAX_OVERRIDE;
53 AAX_Result AddReservedField ( AAX_CFieldIndex inFieldIndex, uint32_t inFieldType ) AAX_OVERRIDE;
54 AAX_Result AddAudioIn ( AAX_CFieldIndex inFieldIndex ) AAX_OVERRIDE;
55 AAX_Result AddAudioOut ( AAX_CFieldIndex inFieldIndex ) AAX_OVERRIDE;
56 AAX_Result AddAudioBufferLength ( AAX_CFieldIndex inFieldIndex ) AAX_OVERRIDE;
57 AAX_Result AddSampleRate ( AAX_CFieldIndex inFieldIndex ) AAX_OVERRIDE;
58 AAX_Result AddClock ( AAX_CFieldIndex inFieldIndex ) AAX_OVERRIDE;
59 AAX_Result AddSideChainIn ( AAX_CFieldIndex inFieldIndex ) 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
74 AAX_IPropertyMap * NewPropertyMap () const AAX_OVERRIDE;
79 AAX_IPropertyMap * DuplicatePropertyMap (AAX_IPropertyMap* inPropertyMap) const AAX_OVERRIDE;
82 virtual AAX_Result AddProcessProc_Native (
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;
90 virtual AAX_Result AddProcessProc_TI (
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;
99 virtual AAX_Result AddProcessProc (
100 AAX_IPropertyMap* inProperties,
101 AAX_CSelector* outProcIDs = NULL,
102 int32_t inProcIDsSize = 0) AAX_OVERRIDE;
103
104
105 IACFUnknown* GetIUnknown(void) const;
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
AAX_EMIDINodeType
MIDI node types.
Definition: AAX_Enums.h:980
AAX_EDataInPortType
AAX_EDataInPortType
Property value for whether a data in port should be buffered or not.
Definition: AAX_Enums.h:1063
AAX_IComponentDescriptor.h
Description interface for an AAX plug-in algorithm.
AAX_Result
int32_t AAX_Result
Definition: AAX.h:334
AAX_OVERRIDE
#define AAX_OVERRIDE
override keyword macro
Definition: AAX.h:151
AAX_CTypeID
uint32_t AAX_CTypeID
Matches type of OSType used in classic plugins.
Definition: AAX.h:333
AAX_CFieldIndex
AAX_CIndex AAX_CFieldIndex
Not used by AAX plug-ins (except in AAX_FIELD_INDEX macro)
Definition: AAX.h:346
AAX_CSelector
uint32_t AAX_CSelector
Definition: AAX.h:327
AAX_EProperty
AAX_EProperty
The list of properties that can be added to an AAX_IPropertyMap.
Definition: AAX_Properties.h:69
AAX_IACFComponentDescriptor.h
Versioned description interface for an AAX plug-in algorithm callback.
AAX_IDma.h
Cross-platform interface for access to the host's direct memory access (DMA) facilities.
AAX_CInstanceInitProc
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_CBackgroundProc
AAX_Component< void >::CBackgroundProc AAX_CBackgroundProc
A user-defined callback that AAX calls in the AAX Idle time.
Definition: AAX_Callbacks.h:148
AAX_CProcessProc
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
IACFUnknown
COM compatible IUnknown C++ interface.
Definition: AAX_ACFInterface.doxygen:252
AAX_IACFComponentDescriptor
Versioned description interface for an AAX plug-in algorithm callback.
Definition: AAX_IACFComponentDescriptor.h:40
AAX_IACFComponentDescriptor_V2
Versioned description interface for an AAX plug-in algorithm callback.
Definition: AAX_IACFComponentDescriptor.h:76
AAX_IACFComponentDescriptor_V3
Versioned description interface for an AAX plug-in algorithm callback.
Definition: AAX_IACFComponentDescriptor.h:84
AAX_IComponentDescriptor
Description interface for an AAX plug-in component.
Definition: AAX_IComponentDescriptor.h:44
AAX_IDma
Cross-platform interface for access to the host's direct memory access (DMA) facilities.
Definition: AAX_IDma.h:50
AAX_IPropertyMap
Generic plug-in description property map.
Definition: AAX_IPropertyMap.h:56
AAX_VComponentDescriptor
Version-managed concrete AAX_IComponentDescriptor class.
Definition: AAX_VComponentDescriptor.h:47
AAX_VComponentDescriptor::AddAudioOut
AAX_Result AddAudioOut(AAX_CFieldIndex inFieldIndex) AAX_OVERRIDE
Subscribes an audio output context field.
AAX_VComponentDescriptor::GetIUnknown
IACFUnknown * GetIUnknown(void) const
AAX_VComponentDescriptor::AddMIDINode
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_VComponentDescriptor::AddDataInPort
AAX_Result AddDataInPort(AAX_CFieldIndex inFieldIndex, uint32_t inPacketSize, AAX_EDataInPortType inPortType) AAX_OVERRIDE
Adds a custom data port to the algorithm context.
AAX_VComponentDescriptor::AddProcessProc_Native
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_VComponentDescriptor::Clear
AAX_Result Clear() AAX_OVERRIDE
Clears the descriptor.
AAX_VComponentDescriptor::AddClock
AAX_Result AddClock(AAX_CFieldIndex inFieldIndex) AAX_OVERRIDE
Subscribes a clock context field.
AAX_VComponentDescriptor::AddAuxOutputStem
AAX_Result AddAuxOutputStem(AAX_CFieldIndex inFieldIndex, int32_t inStemFormat, const char inNameUTF8[]) AAX_OVERRIDE
Adds an auxiliary output stem for a plug-in.
AAX_VComponentDescriptor::AddAudioIn
AAX_Result AddAudioIn(AAX_CFieldIndex inFieldIndex) AAX_OVERRIDE
Subscribes an audio input context field.
AAX_VComponentDescriptor::AddSampleRate
AAX_Result AddSampleRate(AAX_CFieldIndex inFieldIndex) AAX_OVERRIDE
Subscribes a sample rate context field.
AAX_VComponentDescriptor::NewPropertyMap
AAX_IPropertyMap * NewPropertyMap() const AAX_OVERRIDE
Creates a new, empty property map.
AAX_VComponentDescriptor::AddProcessProc
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_VComponentDescriptor::AddTemporaryData
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_VComponentDescriptor::AddSideChainIn
AAX_Result AddSideChainIn(AAX_CFieldIndex inFieldIndex) AAX_OVERRIDE
Subscribes a side-chain input context field.
AAX_VComponentDescriptor::~AAX_VComponentDescriptor
~AAX_VComponentDescriptor() AAX_OVERRIDE
AAX_VComponentDescriptor::AddProcessProc_TI
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_VComponentDescriptor::AddPrivateData
AAX_Result AddPrivateData(AAX_CFieldIndex inFieldIndex, int32_t inDataSize, uint32_t inOptions) AAX_OVERRIDE
Adds a private data port to the algorithm context.
AAX_VComponentDescriptor::AddDmaInstance
AAX_Result AddDmaInstance(AAX_CFieldIndex inFieldIndex, AAX_IDma::EMode inDmaMode) AAX_OVERRIDE
Adds a DMA field to the plug-in's context.
AAX_VComponentDescriptor::AAX_VComponentDescriptor
AAX_VComponentDescriptor(IACFUnknown *pUnkHost)
AAX_VComponentDescriptor::AddReservedField
AAX_Result AddReservedField(AAX_CFieldIndex inFieldIndex, uint32_t inFieldType) AAX_OVERRIDE
Subscribes a context field to host-provided services or information.
AAX_VComponentDescriptor::AddMeters
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_VComponentDescriptor::AddAudioBufferLength
AAX_Result AddAudioBufferLength(AAX_CFieldIndex inFieldIndex) AAX_OVERRIDE
Subscribes a buffer length context field.
AAX_VComponentDescriptor::DuplicatePropertyMap
AAX_IPropertyMap * DuplicatePropertyMap(AAX_IPropertyMap *inPropertyMap) const AAX_OVERRIDE
Creates a new property map using an existing property map.
AAX_VPropertyMap
Version-managed concrete AAX_IPropertyMap class.
Definition: AAX_VPropertyMap.h:46