| 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_VController.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_VCONTROLLER_H
22#define AAX_VCONTROLLER_H
23
24#include "AAX_IController.h"
25#include "AAX_IACFController.h"
26
27#ifdef __clang__
28#pragma clang diagnostic push
29#pragma clang diagnostic ignored "-Wself-assign"
30#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
31#endif
32
33#include "ACFPtr.h"
34
35#ifdef __clang__
36#pragma clang diagnostic pop
37#endif
38
39 class IACFUnknown;
40 class IACFComponentFactory;
41 class AAX_IACFPageTableController;
42 class AAX_IACFPageTableController_V2;
43 class AAX_IACFPageTable_V2;
44
52 class AAX_VController : public AAX_IController
53{
54 public:
55 AAX_VController( IACFUnknown* pUnknown );
56 ~AAX_VController() override;
57
58 //Host Information Getters
59 AAX_Result GetEffectID ( AAX_IString * outEffectID) const AAX_OVERRIDE;
60 AAX_Result GetSampleRate ( AAX_CSampleRate * outSampleRate ) const AAX_OVERRIDE;
61 AAX_Result GetInputStemFormat ( AAX_EStemFormat * outStemFormat ) const AAX_OVERRIDE;
62 AAX_Result GetOutputStemFormat ( AAX_EStemFormat * outStemFormat ) const AAX_OVERRIDE;
63 AAX_Result GetSignalLatency( int32_t* outSamples) const AAX_OVERRIDE;
64 AAX_Result GetHybridSignalLatency(int32_t* outSamples) const AAX_OVERRIDE;
65 AAX_Result GetPlugInTargetPlatform(AAX_CTargetPlatform* outTargetPlatform) const AAX_OVERRIDE;
66 AAX_Result GetIsAudioSuite(AAX_CBoolean* outIsAudioSuite) const AAX_OVERRIDE;
67 AAX_Result GetCycleCount( AAX_EProperty inWhichCycleCount, AAX_CPropertyValue* outNumCycles) const AAX_OVERRIDE;
68 AAX_Result GetTODLocation ( AAX_CTimeOfDay* outTODLocation ) const AAX_OVERRIDE;
69 AAX_Result GetCurrentAutomationTimestamp(AAX_CTransportCounter* outTimestamp) const AAX_OVERRIDE;
70 AAX_Result GetHostName(AAX_IString* outHostNameString) const AAX_OVERRIDE;
71
72 //Host Information Setters (Dynamic info)
73 AAX_Result SetSignalLatency(int32_t inNumSamples) AAX_OVERRIDE;
74 AAX_Result SetCycleCount( AAX_EProperty* inWhichCycleCounts, AAX_CPropertyValue* iValues, int32_t numValues) AAX_OVERRIDE;
75
76 //Posting functions.
77 AAX_Result PostPacket ( AAX_CFieldIndex inFieldIndex, const void * inPayloadP, uint32_t inPayloadSize ) AAX_OVERRIDE;
78
79 // Notification functions
80 AAX_Result SendNotification ( AAX_CTypeID inNotificationType, const void* inNotificationData, uint32_t inNotificationDataSize ) AAX_OVERRIDE;
81 AAX_Result SendNotification ( AAX_CTypeID inNotificationType) AAX_OVERRIDE;
82
83 //Metering functions
84 AAX_Result GetCurrentMeterValue ( AAX_CTypeID inMeterID, float * outMeterValue ) const AAX_OVERRIDE;
85 AAX_Result GetMeterPeakValue( AAX_CTypeID inMeterID, float * outMeterPeakValue ) const AAX_OVERRIDE;
86 AAX_Result ClearMeterPeakValue ( AAX_CTypeID inMeterID ) const AAX_OVERRIDE;
87 AAX_Result GetMeterClipped ( AAX_CTypeID inMeterID, AAX_CBoolean * outClipped ) const AAX_OVERRIDE;
88 AAX_Result ClearMeterClipped ( AAX_CTypeID inMeterID ) const AAX_OVERRIDE;
89 AAX_Result GetMeterCount ( uint32_t * outMeterCount ) const AAX_OVERRIDE;
90
91 //MIDI functions
92 AAX_Result GetNextMIDIPacket( AAX_CFieldIndex* outPort, AAX_CMidiPacket* outPacket ) AAX_OVERRIDE;
93
94 // PageTables functions
97 AAX_IPageTable*
98 CreateTableCopyForEffect(AAX_CPropertyValue inManufacturerID,
99 AAX_CPropertyValue inProductID,
100 AAX_CPropertyValue inPlugInID,
101 uint32_t inTableType,
102 int32_t inTablePageSize) const AAX_OVERRIDE;
105 AAX_IPageTable*
106 CreateTableCopyForLayout(const char * inEffectID,
107 const char * inLayoutName,
108 uint32_t inTableType,
109 int32_t inTablePageSize) const AAX_OVERRIDE;
112 AAX_IPageTable*
113 CreateTableCopyForEffectFromFile(const char* inPageTableFilePath,
114 AAX_ETextEncoding inFilePathEncoding,
115 AAX_CPropertyValue inManufacturerID,
116 AAX_CPropertyValue inProductID,
117 AAX_CPropertyValue inPlugInID,
118 uint32_t inTableType,
119 int32_t inTablePageSize) const AAX_OVERRIDE;
122 AAX_IPageTable*
123 CreateTableCopyForLayoutFromFile(const char* inPageTableFilePath,
124 AAX_ETextEncoding inFilePathEncoding,
125 const char* inLayoutName,
126 uint32_t inTableType,
127 int32_t inTablePageSize) const AAX_OVERRIDE;
128
129 private:
138 ACFPtr<AAX_IACFPageTable_V2> CreatePageTable() const;
140
141 private:
142 ACFPtr<AAX_IACFController> mIController;
143 ACFPtr<AAX_IACFController_V2> mIControllerV2;
144 ACFPtr<AAX_IACFController_V3> mIControllerV3;
145
146 // AAX_IACFPageTableController interface methods are aggregated into AAX_IController
147 ACFPtr<AAX_IACFPageTableController> mIPageTableController;
148 ACFPtr<AAX_IACFPageTableController_V2> mIPageTableControllerV2;
149
150 ACFPtr<IACFComponentFactory> mComponentFactory;
151};
152
153
154#endif // AAX_VCONTROLLER_H
155
AAX_ETextEncoding
AAX_ETextEncoding
Describes possible string encodings.
Definition: AAX_Enums.h:1331
AAX_EStemFormat
AAX_EStemFormat
Stem format definitions.
Definition: AAX_Enums.h:230
AAX_CSampleRate
float AAX_CSampleRate
Literal sample rate value used by the sample rate field. For AAX_eProperty_SampleRate,...
Definition: AAX.h:331
AAX_CTimeOfDay
int64_t AAX_CTimeOfDay
Hardware running clock value. MIDI packet time stamps are measured against this clock....
Definition: AAX.h:329
AAX_Result
int32_t AAX_Result
Definition: AAX.h:334
AAX_CTargetPlatform
int32_t AAX_CTargetPlatform
Matches type of target platform.
Definition: AAX.h:344
AAX_CBoolean
uint8_t AAX_CBoolean
Cross-compiler boolean type used by AAX interfaces.
Definition: AAX.h:326
AAX_CPropertyValue
int32_t AAX_CPropertyValue
32-bit property values
Definition: AAX.h:335
AAX_CTransportCounter
int64_t AAX_CTransportCounter
Offset of samples from transport start. Same as TimeOfDay, but added for new interfaces as TimeOfDay ...
Definition: AAX.h:330
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_EProperty
AAX_EProperty
The list of properties that can be added to an AAX_IPropertyMap.
Definition: AAX_Properties.h:69
AAX_IACFController.h
Interface for the AAX host's view of a single instance of an effect. Used by both clients of the AAXH...
AAX_IController.h
Interface for the AAX host's view of a single instance of an effect.
IACFUnknown
COM compatible IUnknown C++ interface.
Definition: AAX_ACFInterface.doxygen:252
AAX_CMidiPacket
Packet structure for MIDI data.
Definition: AAX.h:636
AAX_IACFPageTable_V2
Versioned interface to the host's representation of a plug-in instance's page table.
Definition: AAX_IACFPageTable.h:47
AAX_IACFPageTableController
Interface for host operations related to the page tables for this plug-in.
Definition: AAX_IACFPageTableController.h:29
AAX_IACFPageTableController_V2
Interface for host operations related to the page tables for this plug-in.
Definition: AAX_IACFPageTableController.h:117
AAX_IController
Interface for the AAX host's view of a single instance of an effect. Used by both clients of the AAX ...
Definition: AAX_IController.h:42
AAX_IPageTable
Interface to the host's representation of a plug-in instance's page table.
Definition: AAX_IPageTable.h:25
AAX_IString
A simple string container that can be passed across a binary boundary. This class,...
Definition: AAX_IString.h:38
AAX_VController
Version-managed concrete Controller class.
Definition: AAX_VController.h:53
AAX_VController::GetOutputStemFormat
AAX_Result GetOutputStemFormat(AAX_EStemFormat *outStemFormat) const AAX_OVERRIDE
CALL: Returns the plug-in's output stem format.
AAX_VController::~AAX_VController
~AAX_VController() override
AAX_VController::GetSampleRate
AAX_Result GetSampleRate(AAX_CSampleRate *outSampleRate) const AAX_OVERRIDE
CALL: Returns the current literal sample rate.
AAX_VController::GetHostName
AAX_Result GetHostName(AAX_IString *outHostNameString) const AAX_OVERRIDE
CALL: Returns name of the host application this plug-in instance is being loaded by....
AAX_VController::CreateTableCopyForLayout
AAX_IPageTable * CreateTableCopyForLayout(const char *inEffectID, const char *inLayoutName, uint32_t inTableType, int32_t inTablePageSize) const AAX_OVERRIDE
Copy the current page table data for a particular plug-in effect and page table layout.
AAX_VController::CreateTableCopyForEffect
AAX_IPageTable * CreateTableCopyForEffect(AAX_CPropertyValue inManufacturerID, AAX_CPropertyValue inProductID, AAX_CPropertyValue inPlugInID, uint32_t inTableType, int32_t inTablePageSize) const AAX_OVERRIDE
Copy the current page table data for a particular plug-in type.
AAX_VController::GetMeterClipped
AAX_Result GetMeterClipped(AAX_CTypeID inMeterID, AAX_CBoolean *outClipped) const AAX_OVERRIDE
CALL: Retrieves the clipped flag from a host-managed plug-in meter.
AAX_VController::PostPacket
AAX_Result PostPacket(AAX_CFieldIndex inFieldIndex, const void *inPayloadP, uint32_t inPayloadSize) AAX_OVERRIDE
CALL: Posts a data packet to the host for routing between plug-in components.
AAX_VController::GetIsAudioSuite
AAX_Result GetIsAudioSuite(AAX_CBoolean *outIsAudioSuite) const AAX_OVERRIDE
CALL: Returns true for AudioSuite instances.
AAX_VController::GetNextMIDIPacket
AAX_Result GetNextMIDIPacket(AAX_CFieldIndex *outPort, AAX_CMidiPacket *outPacket) AAX_OVERRIDE
CALL: Retrieves MIDI packets for described MIDI nodes.
AAX_VController::GetInputStemFormat
AAX_Result GetInputStemFormat(AAX_EStemFormat *outStemFormat) const AAX_OVERRIDE
CALL: Returns the plug-in's input stem format.
AAX_VController::CreateTableCopyForEffectFromFile
AAX_IPageTable * CreateTableCopyForEffectFromFile(const char *inPageTableFilePath, AAX_ETextEncoding inFilePathEncoding, AAX_CPropertyValue inManufacturerID, AAX_CPropertyValue inProductID, AAX_CPropertyValue inPlugInID, uint32_t inTableType, int32_t inTablePageSize) const AAX_OVERRIDE
Copy the current page table data for a particular plug-in type.
AAX_VController::SetSignalLatency
AAX_Result SetSignalLatency(int32_t inNumSamples) AAX_OVERRIDE
CALL: Submits a request to change the delay compensation value that the host uses to account for the ...
AAX_VController::ClearMeterPeakValue
AAX_Result ClearMeterPeakValue(AAX_CTypeID inMeterID) const AAX_OVERRIDE
CALL: Clears the peak value from a host-managed plug-in meter.
AAX_VController::CreateTableCopyForLayoutFromFile
AAX_IPageTable * CreateTableCopyForLayoutFromFile(const char *inPageTableFilePath, AAX_ETextEncoding inFilePathEncoding, const char *inLayoutName, uint32_t inTableType, int32_t inTablePageSize) const AAX_OVERRIDE
Copy the current page table data for a particular plug-in effect and page table layout.
AAX_VController::GetTODLocation
AAX_Result GetTODLocation(AAX_CTimeOfDay *outTODLocation) const AAX_OVERRIDE
CALL: Returns the current Time Of Day (TOD) of the system.
AAX_VController::GetCycleCount
AAX_Result GetCycleCount(AAX_EProperty inWhichCycleCount, AAX_CPropertyValue *outNumCycles) const AAX_OVERRIDE
CALL: returns the plug-in's current real-time DSP cycle count.
AAX_VController::SetCycleCount
AAX_Result SetCycleCount(AAX_EProperty *inWhichCycleCounts, AAX_CPropertyValue *iValues, int32_t numValues) AAX_OVERRIDE
CALL: Indicates a change in the plug-in's real-time DSP cycle count.
AAX_VController::GetMeterPeakValue
AAX_Result GetMeterPeakValue(AAX_CTypeID inMeterID, float *outMeterPeakValue) const AAX_OVERRIDE
CALL: Retrieves the currently held peak value of a host-managed plug-in meter.
AAX_VController::GetSignalLatency
AAX_Result GetSignalLatency(int32_t *outSamples) const AAX_OVERRIDE
CALL: Returns the most recent signal (algorithmic) latency that has been published by the plug-in.
AAX_VController::GetPlugInTargetPlatform
AAX_Result GetPlugInTargetPlatform(AAX_CTargetPlatform *outTargetPlatform) const AAX_OVERRIDE
CALL: Returns execution platform type, native or TI.
AAX_VController::GetHybridSignalLatency
AAX_Result GetHybridSignalLatency(int32_t *outSamples) const AAX_OVERRIDE
CALL: Returns the latency between the algorithm normal input samples and the inputs returning from th...
AAX_VController::GetMeterCount
AAX_Result GetMeterCount(uint32_t *outMeterCount) const AAX_OVERRIDE
CALL: Retrieves the number of host-managed meters registered by a plug-in.
AAX_VController::GetCurrentMeterValue
AAX_Result GetCurrentMeterValue(AAX_CTypeID inMeterID, float *outMeterValue) const AAX_OVERRIDE
CALL: Retrieves the current value of a host-managed plug-in meter.
AAX_VController::SendNotification
AAX_Result SendNotification(AAX_CTypeID inNotificationType) AAX_OVERRIDE
CALL: Sends an event to the GUI (no payload) Not an AAX interface method
AAX_VController::ClearMeterClipped
AAX_Result ClearMeterClipped(AAX_CTypeID inMeterID) const AAX_OVERRIDE
CALL: Clears the clipped flag from a host-managed plug-in meter.
AAX_VController::GetEffectID
AAX_Result GetEffectID(AAX_IString *outEffectID) const AAX_OVERRIDE
AAX_VController::AAX_VController
AAX_VController(IACFUnknown *pUnknown)
AAX_VController::SendNotification
AAX_Result SendNotification(AAX_CTypeID inNotificationType, const void *inNotificationData, uint32_t inNotificationDataSize) AAX_OVERRIDE
CALL: Dispatch a notification.
AAX_VController::GetCurrentAutomationTimestamp
AAX_Result GetCurrentAutomationTimestamp(AAX_CTransportCounter *outTimestamp) const AAX_OVERRIDE
CALL: Returns the current automation timestamp if called during the GenerateCoefficients() call AND t...