Logo Search packages:      
Sourcecode: jacktrip version File versions  Download package

void JackAudioInterface::appendProcessPlugin ( ProcessPlugin plugin )

Set the pointer to the Input and Output RingBuffer that'll be use to read and write audio.

These RingBuffers are used to read and write audio samples on each JACK callback.

Todo:
If the RingBuffer is blocked, the callback should stay on the last buffer, as in JackTrip (wavetable synth)
Parameters:
InRingBufferRingBuffer to read samples from
OutRingBufferRingBuffer to write samples toAppend a ProcessPlugin. The order of processing is determined by the order by which appending is done.
plugina ProcesPlugin smart pointer. Create the object instance using something like:
std::tr1::shared_ptr<ProcessPluginName> loopback(new ProcessPluginName);

Todo:
check that channels in ProcessPlugins are less or same that jack channels

Definition at line 622 of file JackAudioInterface.cpp.

References ProcessPlugin::getNumInputs(), and mProcessPlugins.

Referenced by JackTrip::start().

{
  /// \todo check that channels in ProcessPlugins are less or same that jack channels
  if ( plugin->getNumInputs() ) {}
  mProcessPlugins.append(plugin);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index