CSL  5.2
csl::VSTIO Class Reference

VSTIO is an IO that answers the VST processReplacing() call by calling its CSL graph. More...

#include <VSTIO.h>

+ Inheritance diagram for csl::VSTIO:

List of all members.

Public Member Functions

 VSTIO ()
 Constructor.
 VSTIO (audioMasterCallback audioMaster, unsigned s_rate=44100, unsigned b_size=512, unsigned in_chans=2, unsigned out_chans=2)
virtual ~VSTIO ()
void open () throw (CException)
 open/close start/stop methods
void close () throw (CException)
 open/close start/stop methods
void start () throw (CException)
 start my timer thread
void stop () throw (CException)
 stop the timer thread
virtual void processReplacing (float **inputs, float **outputs, VstInt32 sampleFrames)
virtual void processDoubleReplacing (double **inputs, double **outputs, VstInt32 sampleFrames)
virtual void setProgramName (char *name)
virtual void getProgramName (char *name)
virtual void setParameter (VstInt32 index, float value)
virtual float getParameter (VstInt32 index)
virtual void getParameterLabel (VstInt32 index, char *label)
virtual void getParameterDisplay (VstInt32 index, char *text)
virtual void getParameterName (VstInt32 index, char *text)
virtual bool getEffectName (char *name)
virtual bool getVendorString (char *text)
virtual bool getProductString (char *text)
virtual VstInt32 getVendorVersion ()
virtual void test () throw (CException)
void setRoot (UnitGenerator &root)
 test the IO's graph
void clearRoot ()
 set/clear my graph root generator
void pullInput (Buffer &outBuffer, SampleBuffer out=0) throw (CException)
 get a buffer from the CSL graph
virtual BuffergetInput () throw (CException)
 Get the current input from the sound card.
virtual BuffergetInput (unsigned numFrames, unsigned numChannels) throw (CException)
unsigned getAndIncrementSequence ()
 increment and answer my seq #
void attachObserver (Observer *)
 (possibly notify obersvers on my death)
void detachObserver (Observer *)
void changed (void *argument)
 this is what I send to myself to notify my observers; It's not overridden in general. It results in the observers receiving update() calls < override evaluate to filter updates to the observer map
virtual int evaluate (void *argument)

Public Attributes

UnitGeneratormGraph
 the root of my client DSP graph, often a mixer or panner
Buffer mInputBuffer
 the most recent input buffer (if it's turned on)
Buffer mOutputBuffer
 the output buffer I use (passed to nextBuffer calls)
SampleBuffer mInputPointer
 the buffer for holding the sound card input (if open)
unsigned * mChannelMap
 the output channel remapping array
unsigned mNumFramesPlayed
 counter of frames I've played
unsigned mSequence
 sequence counter
unsigned mLoggingPeriod
 logging period in seconds
unsigned mNumInChannels
 

inputs


unsigned mNumOutChannels
 

outputs


unsigned mNumRealInChannels
 

physical inputs


unsigned mNumRealOutChannels
 

physical outputs


IO_Status mStatus
 status flag
bool mInterleaved
 flag if IO is interleaved

Protected Member Functions

virtual void initialize (unsigned sr, unsigned bs, int is, int os, unsigned ic, unsigned oc)
 initialize overridden in subclasses

Protected Attributes

InOutmInOut
 the in-out object
FiltermFilter
 BPF filter.
float mFreq
 Example: filter center freq.

Detailed Description

VSTIO is an IO that answers the VST processReplacing() call by calling its CSL graph.

Definition at line 21 of file VSTIO.h.


Constructor & Destructor Documentation

VSTIO::VSTIO ( )

Constructor.

Definition at line 17 of file VSTIO.cpp.

VSTIO::VSTIO ( audioMasterCallback  audioMaster,
unsigned  s_rate = 44100,
unsigned  b_size = 512,
unsigned  in_chans = 2,
unsigned  out_chans = 2 
)

Definition at line 19 of file VSTIO.cpp.

References BW_BAND_PASS, kNoProc, mFilter, mInOut, csl::IO::mInterleaved, and csl::IO::setRoot().

VSTIO::~VSTIO ( )
virtual

Definition at line 42 of file VSTIO.cpp.


Member Function Documentation

void VSTIO::open ( ) throw (CException)
virtual

open/close start/stop methods

Reimplemented from csl::IO.

Definition at line 46 of file VSTIO.cpp.

void VSTIO::close ( ) throw (CException)
virtual

open/close start/stop methods

Reimplemented from csl::IO.

Definition at line 48 of file VSTIO.cpp.

void VSTIO::start ( void  ) throw (CException)
virtual

start my timer thread

Reimplemented from csl::IO.

Definition at line 50 of file VSTIO.cpp.

void VSTIO::stop ( void  ) throw (CException)
virtual

stop the timer thread

Reimplemented from csl::IO.

Definition at line 52 of file VSTIO.cpp.

void VSTIO::processReplacing ( float **  inputs,
float **  outputs,
VstInt32  sampleFrames 
)
virtual
virtual void csl::VSTIO::processDoubleReplacing ( double **  inputs,
double **  outputs,
VstInt32  sampleFrames 
)
inlinevirtual

Definition at line 36 of file VSTIO.h.

void VSTIO::setProgramName ( char *  name)
virtual

Definition at line 56 of file VSTIO.cpp.

References csl::IO::mGraph.

void VSTIO::getProgramName ( char *  name)
virtual

Definition at line 60 of file VSTIO.cpp.

void VSTIO::setParameter ( VstInt32  index,
float  value 
)
virtual

Definition at line 67 of file VSTIO.cpp.

References mFilter, and csl::FrequencyAmount::setFrequency().

float VSTIO::getParameter ( VstInt32  index)
virtual
void VSTIO::getParameterLabel ( VstInt32  index,
char *  label 
)
virtual

Definition at line 81 of file VSTIO.cpp.

void VSTIO::getParameterDisplay ( VstInt32  index,
char *  text 
)
virtual

Definition at line 85 of file VSTIO.cpp.

References mFreq.

void VSTIO::getParameterName ( VstInt32  index,
char *  text 
)
virtual

Definition at line 89 of file VSTIO.cpp.

bool VSTIO::getEffectName ( char *  name)
virtual

Definition at line 93 of file VSTIO.cpp.

bool VSTIO::getVendorString ( char *  text)
virtual

Definition at line 98 of file VSTIO.cpp.

bool VSTIO::getProductString ( char *  text)
virtual

Definition at line 103 of file VSTIO.cpp.

VstInt32 VSTIO::getVendorVersion ( )
virtual

Definition at line 108 of file VSTIO.cpp.

virtual void csl::IO::test ( ) throw (CException)
inlinevirtualinherited

Reimplemented in csl::FileIO, and csl::PAIO.

Definition at line 727 of file CSL_Core.h.

void IO::setRoot ( UnitGenerator root)
inherited

test the IO's graph

Definition at line 1249 of file CSL_Core.cpp.

References csl::UnitGenerator::addOutput(), and csl::IO::mGraph.

Referenced by main(), and VSTIO().

void IO::clearRoot ( )
inherited

set/clear my graph root generator

Definition at line 1254 of file CSL_Core.cpp.

References csl::IO::mGraph, and csl::UnitGenerator::removeOutput().

void IO::pullInput ( Buffer outBuffer,
SampleBuffer  out = 0 
) throw (CException)
inherited
Buffer & IO::getInput ( ) throw (CException)
virtualinherited

Get the current input from the sound card.

Reimplemented in csl::FileIO, csl::AUIO, csl::AUIO, and csl::NullIO.

Definition at line 1358 of file CSL_Core.cpp.

References csl::IO::mInputBuffer, csl::Buffer::mNumChannels, and csl::Buffer::mNumFrames.

Buffer & IO::getInput ( unsigned  numFrames,
unsigned  numChannels 
) throw (CException)
virtualinherited

Reimplemented in csl::FileIO, csl::AUIO, csl::AUIO, and csl::NullIO.

Definition at line 1364 of file CSL_Core.cpp.

References csl::Interleaver::deinterleave(), and mNumInChannels.

unsigned IO::getAndIncrementSequence ( )
inherited

increment and answer my seq #

Definition at line 1262 of file CSL_Core.cpp.

References csl::IO::mSequence.

virtual void csl::IO::initialize ( unsigned  sr,
unsigned  bs,
int  is,
int  os,
unsigned  ic,
unsigned  oc 
)
inlineprotectedvirtualinherited

initialize overridden in subclasses

Reimplemented in csl::PAIO.

Definition at line 765 of file CSL_Core.h.

void Model::attachObserver ( Observer o)
inherited

(possibly notify obersvers on my death)

register/remove observers

Definition at line 491 of file CGestalt.cpp.

References csl::logMsg(), csl::Observer::mKey, and csl::Observer::mPeriod.

Referenced by csl::SpatialPanner::setSpeakerLayout().

void Model::detachObserver ( Observer o)
inherited
void Model::changed ( void *  argument)
inherited

this is what I send to myself to notify my observers; It's not overridden in general. It results in the observers receiving update() calls < override evaluate to filter updates to the observer map

Definition at line 529 of file CGestalt.cpp.

References csl::logMsg().

Referenced by csl::SpeakerLayout::addSpeaker(), csl::MIDIIn::handleIncomingMidiMessage(), and csl::SpeakerLayout::setDefaultSpeakerLayout().

virtual int csl::Model::evaluate ( void *  argument)
inlinevirtualinherited

Reimplemented in csl::MIDIIn.

Definition at line 259 of file CGestalt.h.


Member Data Documentation

InOut* csl::VSTIO::mInOut
protected

the in-out object

Definition at line 55 of file VSTIO.h.

Referenced by VSTIO().

Filter* csl::VSTIO::mFilter
protected

BPF filter.

Definition at line 56 of file VSTIO.h.

Referenced by getParameter(), setParameter(), and VSTIO().

float csl::VSTIO::mFreq
protected

Example: filter center freq.

Definition at line 57 of file VSTIO.h.

Referenced by getParameterDisplay().

UnitGenerator* csl::IO::mGraph
inherited
Buffer csl::IO::mInputBuffer
inherited
Buffer csl::IO::mOutputBuffer
inherited
SampleBuffer csl::IO::mInputPointer
inherited

the buffer for holding the sound card input (if open)

Definition at line 742 of file CSL_Core.h.

Referenced by pa_callback().

unsigned* csl::IO::mChannelMap
inherited

the output channel remapping array

Definition at line 743 of file CSL_Core.h.

Referenced by csl::PAIO::initialize().

unsigned csl::IO::mNumFramesPlayed
inherited

counter of frames I've played

Definition at line 745 of file CSL_Core.h.

Referenced by csl::JUCEIO::audioDeviceIOCallback(), pa_callback(), RenderCallback(), csl::AUIO::start(), and csl::FileIO::writeNextBuffer().

unsigned csl::IO::mSequence
inherited

sequence counter

Definition at line 746 of file CSL_Core.h.

Referenced by csl::IO::getAndIncrementSequence().

unsigned csl::IO::mLoggingPeriod
inherited

logging period in seconds

Definition at line 747 of file CSL_Core.h.

unsigned csl::IO::mNumInChannels
inherited

inputs

Definition at line 748 of file CSL_Core.h.

Referenced by csl::JUCEIO::audioDeviceIOCallback(), csl::PAIO::initialize(), and pa_callback().

unsigned csl::IO::mNumOutChannels
inherited

outputs

Definition at line 749 of file CSL_Core.h.

Referenced by csl::JUCEIO::audioDeviceIOCallback(), csl::PAIO::initialize(), and processReplacing().

unsigned csl::IO::mNumRealInChannels
inherited

physical inputs

Definition at line 750 of file CSL_Core.h.

Referenced by csl::PAIO::initialize().

unsigned csl::IO::mNumRealOutChannels
inherited

physical outputs

Definition at line 751 of file CSL_Core.h.

Referenced by csl::PAIO::initialize().

bool csl::IO::mInterleaved
inherited

flag if IO is interleaved

Definition at line 753 of file CSL_Core.h.

Referenced by csl::InOut::InOut(), and VSTIO().


The documentation for this class was generated from the following files: