VST 3 Examples  VST 3.6.14
SDK for developing VST Plug-in
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
HostCheckerProcessor Class Reference

#include <hostcheckerprocessor.h>

+ Inheritance diagram for HostCheckerProcessor:

Public Member Functions

 HostCheckerProcessor ()
 
tresult initialize (FUnknown *context) SMTG_OVERRIDE
 
tresult terminate () SMTG_OVERRIDE
 
tresult process (ProcessData &data) SMTG_OVERRIDE
 
tresult setupProcessing (ProcessSetup &setup) SMTG_OVERRIDE
 
tresult setActive (TBool state) SMTG_OVERRIDE
 
tresult notify (IMessage *message) SMTG_OVERRIDE
 
uint32 getLatencySamples () SMTG_OVERRIDE
 
uint32 getTailSamples () SMTG_OVERRIDE
 
tresult canProcessSampleSize (int32 symbolicSampleSize) SMTG_OVERRIDE
 
tresult setProcessing (TBool state) SMTG_OVERRIDE
 
tresult setState (IBStream *state) SMTG_OVERRIDE
 
tresult getState (IBStream *state) SMTG_OVERRIDE
 
tresult getRoutingInfo (RoutingInfo &inInfo, RoutingInfo &outInfo) SMTG_OVERRIDE
 
tresult activateBus (MediaType type, BusDirection dir, int32 index, TBool state) SMTG_OVERRIDE
 
tresult setBusArrangements (SpeakerArrangement *inputs, int32 numIns, SpeakerArrangement *outputs, int32 numOuts) SMTG_OVERRIDE
 
tresult getBusArrangement (BusDirection dir, int32 busIndex, SpeakerArrangement &arr) SMTG_OVERRIDE
 
tresult setAudioPresentationLatencySamples (BusDirection dir, int32 busIndex, uint32 latencyInSamples) SMTG_OVERRIDE
 
tresult getPrefetchableSupport (PrefetchableSupport &prefetchable) SMTG_OVERRIDE
 
- Public Member Functions inherited from AudioEffect
 AudioEffect ()
 
AudioBusaddAudioInput (const TChar *name, SpeakerArrangement arr, BusType busType=kMain, int32 flags=BusInfo::kDefaultActive)
 
AudioBusaddAudioOutput (const TChar *name, SpeakerArrangement arr, BusType busType=kMain, int32 flags=BusInfo::kDefaultActive)
 
AudioBusgetAudioInput (int32 index)
 
AudioBusgetAudioOutput (int32 index)
 
EventBusaddEventInput (const TChar *name, int32 channels=16, BusType busType=kMain, int32 flags=BusInfo::kDefaultActive)
 
EventBusaddEventOutput (const TChar *name, int32 channels=16, BusType busType=kMain, int32 flags=BusInfo::kDefaultActive)
 
EventBusgetEventInput (int32 index)
 
EventBusgetEventOutput (int32 index)
 
 Component ()
 
void setControllerClass (const FUID &cid)
 
tresult removeAudioBusses ()
 
tresult removeEventBusses ()
 
tresult renameBus (MediaType type, BusDirection dir, int32 index, const String128 newName)
 
tresult getControllerClassId (TUID classID) SMTG_OVERRIDE
 
tresult setIoMode (IoMode mode) SMTG_OVERRIDE
 
int32 getBusCount (MediaType type, BusDirection dir) SMTG_OVERRIDE
 
tresult getBusInfo (MediaType type, BusDirection dir, int32 index, BusInfo &info) SMTG_OVERRIDE
 
BusListgetBusList (MediaType type, BusDirection dir)
 
tresult removeAllBusses ()
 
 ComponentBase ()
 
 ~ComponentBase () override
 
FUnknowngetHostContext () const
 
IConnectionPointgetPeer () const
 
IMessageallocateMessage ()
 
tresult sendMessage (IMessage *message)
 
tresult sendTextMessage (const char8 *text)
 
virtual tresult receiveText (const char8 *text)
 
tresult connect (IConnectionPoint *other) SMTG_OVERRIDE
 
tresult disconnect (IConnectionPoint *other) SMTG_OVERRIDE
 
- Public Member Functions inherited from FUnknown
virtual tresult queryInterface (const TUID _iid, void **obj)=0
 
virtual uint32 addRef ()=0
 
virtual uint32 release ()=0
 

Static Public Member Functions

static FUnknowncreateInstance (void *)
 

Protected Member Functions

void addLogEvent (Steinberg::int32 logId)
 
void informLatencyChanged ()
 
void sendLatencyChanged ()
 
void addLogEventMessage (const LogEvent &logEvent)
 
void sendLogEventMessage (const LogEvent &logEvent)
 
void sendNowAllLogEvents ()
 

Protected Attributes

HostCheck mHostCheck
 
BypassProcessor< Vst::Sample32mBypassProcessorFloat
 
BypassProcessor< Vst::Sample64mBypassProcessorDouble
 
float mLastBlockMarkerValue = -0.5f
 
int32 mNumNoteOns = 0
 
uint32 mLatency = 0
 
uint32 mWantedLatency = 0
 
float mGeneratePeaks = 0
 
State mCurrentState = kUninitialized
 
uint32 mMinimumOfInputBufferCount {0}
 
uint32 mMinimumOfOutputBufferCount {0}
 
std::unique_ptr< ThreadChecker > threadChecker {ThreadChecker::create ()}
 
Steinberg::Base::Thread::FLock msgQueueLock
 
std::list< LogEvent * > msgQueue
 
bool mBypass {false}
 

Additional Inherited Members

- Public Attributes inherited from AudioEffect
OBJ_METHODS(Component,
ComponentBase)
DEFINE_INTERFACES
DEF_INTERFACE(IComponent)
END_DEFINE_INTERFACES(ComponentBase)
REFCOUNT_METHODS(ComponentBase)
protected BusList 
audioInputs
 
BusList audioOutputs
 
BusList eventInputs
 
BusList eventOutputs
 
OBJ_METHODS(ComponentBase,
FObject) DEFINE_INTERFACES
DEF_INTERFACE(IPluginBase)
DEF_INTERFACE(IConnectionPoint)
END_DEFINE_INTERFACES(FObject)
REFCOUNT_METHODS(FObject)
protected IPtr
< IConnectionPoint
peerConnection
 
- Static Public Attributes inherited from IPluginBase
static const FUID iid
 
- Static Public Attributes inherited from FUnknown
static const FUID iid
 
- Static Public Attributes inherited from IConnectionPoint
static const FUID iid
 
- Static Public Attributes inherited from IComponent
static const FUID iid
 
- Static Public Attributes inherited from IAudioProcessor
static const FUID iid
 
- Static Public Attributes inherited from IAudioPresentationLatency
static const FUID iid
 
- Static Public Attributes inherited from IPrefetchableSupport
static const FUID iid
 

Constructor & Destructor Documentation

Member Function Documentation

tresult initialize ( FUnknown context)
virtual

Reimplemented from AudioEffect.

tresult terminate ( )
virtual

Reimplemented from AudioEffect.

tresult process ( ProcessData data)
virtual

Reimplemented from AudioEffect.

tresult setupProcessing ( ProcessSetup setup)
virtual

Reimplemented from AudioEffect.

tresult setActive ( TBool  state)
virtual

Reimplemented from AudioEffect.

tresult notify ( IMessage message)
virtual

Reimplemented from AudioEffect.

uint32 getLatencySamples ( )
virtual

Reimplemented from AudioEffect.

uint32 getTailSamples ( )
virtual

Reimplemented from AudioEffect.

tresult canProcessSampleSize ( int32  symbolicSampleSize)
virtual

Reimplemented from AudioEffect.

tresult setProcessing ( TBool  state)
virtual

Reimplemented from AudioEffect.

tresult setState ( IBStream state)
virtual

Reimplemented from AudioEffect.

tresult getState ( IBStream state)
virtual

Reimplemented from AudioEffect.

tresult getRoutingInfo ( RoutingInfo inInfo,
RoutingInfo outInfo 
)
virtual

Reimplemented from AudioEffect.

tresult activateBus ( MediaType  type,
BusDirection  dir,
int32  index,
TBool  state 
)
virtual

Reimplemented from AudioEffect.

tresult setBusArrangements ( SpeakerArrangement inputs,
int32  numIns,
SpeakerArrangement outputs,
int32  numOuts 
)
virtual

Reimplemented from AudioEffect.

tresult getBusArrangement ( BusDirection  dir,
int32  busIndex,
SpeakerArrangement arr 
)
virtual

Reimplemented from AudioEffect.

static FUnknown* createInstance ( void *  )
inlinestatic
tresult setAudioPresentationLatencySamples ( BusDirection  dir,
int32  busIndex,
uint32  latencyInSamples 
)
virtual
tresult getPrefetchableSupport ( PrefetchableSupport prefetchable)
virtual

Implements IPrefetchableSupport.

void addLogEvent ( Steinberg::int32  logId)
protected
void informLatencyChanged ( )
protected
void sendLatencyChanged ( )
protected
void addLogEventMessage ( const LogEvent logEvent)
protected
void sendLogEventMessage ( const LogEvent logEvent)
protected
void sendNowAllLogEvents ( )
protected

Member Data Documentation

HostCheck mHostCheck
protected
BypassProcessor<Vst::Sample32> mBypassProcessorFloat
protected
BypassProcessor<Vst::Sample64> mBypassProcessorDouble
protected
float mLastBlockMarkerValue = -0.5f
protected
int32 mNumNoteOns = 0
protected
uint32 mLatency = 0
protected
uint32 mWantedLatency = 0
protected
float mGeneratePeaks = 0
protected
State mCurrentState = kUninitialized
protected
uint32 mMinimumOfInputBufferCount {0}
protected
uint32 mMinimumOfOutputBufferCount {0}
protected
std::unique_ptr<ThreadChecker> threadChecker {ThreadChecker::create ()}
protected
Steinberg::Base::Thread::FLock msgQueueLock
protected
std::list<LogEvent*> msgQueue
protected
bool mBypass {false}
protected
Empty

Copyright ©2019 Steinberg Media Technologies GmbH. All Rights Reserved. This documentation is under this license.