AAX SDK 2.6.1
Avid Audio Extensions Development Kit
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
39class IACFUnknown;
40class IACFComponentFactory;
44
53{
54public:
56 ~AAX_VController() override;
57
58 //Host Information Getters
63 AAX_Result GetSignalLatency( int32_t* outSamples) const AAX_OVERRIDE;
64 AAX_Result GetHybridSignalLatency(int32_t* outSamples) const AAX_OVERRIDE;
67 AAX_Result GetCycleCount( AAX_EProperty inWhichCycleCount, AAX_CPropertyValue* outNumCycles) const AAX_OVERRIDE;
70 AAX_Result GetHostName(AAX_IString* outHostNameString) const AAX_OVERRIDE;
71
72 //Host Information Setters (Dynamic info)
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;
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;
89 AAX_Result GetMeterCount ( uint32_t * outMeterCount ) const AAX_OVERRIDE;
90
91 //MIDI functions
93
94 // PageTables functions
99 AAX_CPropertyValue inProductID,
100 AAX_CPropertyValue inPlugInID,
101 uint32_t inTableType,
102 int32_t inTablePageSize) const AAX_OVERRIDE;
106 CreateTableCopyForLayout(const char * inEffectID,
107 const char * inLayoutName,
108 uint32_t inTableType,
109 int32_t inTablePageSize) const AAX_OVERRIDE;
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;
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
129private:
138 ACFPtr<AAX_IACFPageTable_V2> CreatePageTable() const;
140
141private:
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
Describes possible string encodings.
Definition: AAX_Enums.h:1331
AAX_EStemFormat
Stem format definitions.
Definition: AAX_Enums.h:230
float AAX_CSampleRate
Literal sample rate value used by the sample rate field. For AAX_eProperty_SampleRate,...
Definition: AAX.h:331
int64_t AAX_CTimeOfDay
Hardware running clock value. MIDI packet time stamps are measured against this clock....
Definition: AAX.h:329
int32_t AAX_Result
Definition: AAX.h:334
int32_t AAX_CTargetPlatform
Matches type of target platform.
Definition: AAX.h:344
uint8_t AAX_CBoolean
Cross-compiler boolean type used by AAX interfaces.
Definition: AAX.h:326
int32_t AAX_CPropertyValue
32-bit property values
Definition: AAX.h:335
int64_t AAX_CTransportCounter
Offset of samples from transport start. Same as TimeOfDay, but added for new interfaces as TimeOfDay ...
Definition: AAX.h:330
#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
AAX_EProperty
The list of properties that can be added to an AAX_IPropertyMap.
Definition: AAX_Properties.h:69
Interface for the AAX host's view of a single instance of an effect. Used by both clients of the AAXH...
Interface for the AAX host's view of a single instance of an effect.
COM compatible IUnknown C++ interface.
Definition: AAX_ACFInterface.doxygen:252
Packet structure for MIDI data.
Definition: AAX.h:636
Versioned interface to the host's representation of a plug-in instance's page table.
Definition: AAX_IACFPageTable.h:47
Interface for host operations related to the page tables for this plug-in.
Definition: AAX_IACFPageTableController.h:29
Interface for host operations related to the page tables for this plug-in.
Definition: AAX_IACFPageTableController.h:117
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
Interface to the host's representation of a plug-in instance's page table.
Definition: AAX_IPageTable.h:25
A simple string container that can be passed across a binary boundary. This class,...
Definition: AAX_IString.h:38
Version-managed concrete Controller class.
Definition: AAX_VController.h:53
AAX_Result GetOutputStemFormat(AAX_EStemFormat *outStemFormat) const AAX_OVERRIDE
CALL: Returns the plug-in's output stem format.
~AAX_VController() override
AAX_Result GetSampleRate(AAX_CSampleRate *outSampleRate) const AAX_OVERRIDE
CALL: Returns the current literal sample rate.
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_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_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_Result GetMeterClipped(AAX_CTypeID inMeterID, AAX_CBoolean *outClipped) const AAX_OVERRIDE
CALL: Retrieves the clipped flag from a host-managed plug-in meter.
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_Result GetIsAudioSuite(AAX_CBoolean *outIsAudioSuite) const AAX_OVERRIDE
CALL: Returns true for AudioSuite instances.
AAX_Result GetNextMIDIPacket(AAX_CFieldIndex *outPort, AAX_CMidiPacket *outPacket) AAX_OVERRIDE
CALL: Retrieves MIDI packets for described MIDI nodes.
AAX_Result GetInputStemFormat(AAX_EStemFormat *outStemFormat) const AAX_OVERRIDE
CALL: Returns the plug-in's input stem format.
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_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_Result ClearMeterPeakValue(AAX_CTypeID inMeterID) const AAX_OVERRIDE
CALL: Clears the peak value from a host-managed plug-in meter.
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_Result GetTODLocation(AAX_CTimeOfDay *outTODLocation) const AAX_OVERRIDE
CALL: Returns the current Time Of Day (TOD) of the system.
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_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_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_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_Result GetPlugInTargetPlatform(AAX_CTargetPlatform *outTargetPlatform) const AAX_OVERRIDE
CALL: Returns execution platform type, native or TI.
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_Result GetMeterCount(uint32_t *outMeterCount) const AAX_OVERRIDE
CALL: Retrieves the number of host-managed meters registered by a plug-in.
AAX_Result GetCurrentMeterValue(AAX_CTypeID inMeterID, float *outMeterValue) const AAX_OVERRIDE
CALL: Retrieves the current value of a host-managed plug-in meter.
AAX_Result SendNotification(AAX_CTypeID inNotificationType) AAX_OVERRIDE
CALL: Sends an event to the GUI (no payload) Not an AAX interface method
AAX_Result ClearMeterClipped(AAX_CTypeID inMeterID) const AAX_OVERRIDE
CALL: Clears the clipped flag from a host-managed plug-in meter.
AAX_Result GetEffectID(AAX_IString *outEffectID) const AAX_OVERRIDE
AAX_VController(IACFUnknown *pUnknown)
AAX_Result SendNotification(AAX_CTypeID inNotificationType, const void *inNotificationData, uint32_t inNotificationDataSize) AAX_OVERRIDE
CALL: Dispatch a notification.
AAX_Result GetCurrentAutomationTimestamp(AAX_CTransportCounter *outTimestamp) const AAX_OVERRIDE
CALL: Returns the current automation timestamp if called during the GenerateCoefficients() call AND t...