JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
juce::dsp::ProcessContextReplacing< ContextSampleType > Struct Template Reference

Contains context information that is passed into an algorithm's process method. More...

#include "juce_ProcessContext.h"

Public Types

using SampleType = ContextSampleType
 The type of a single sample (which may be a vector if multichannel).
 
using AudioBlockType = AudioBlock< SampleType >
 The type of audio block that this context handles.
 
using ConstAudioBlockType = AudioBlock< const SampleType >
 

Public Member Functions

 ProcessContextReplacing (AudioBlockType &block) noexcept
 Creates a ProcessContextReplacing that uses the given audio block.
 
 ProcessContextReplacing (const ProcessContextReplacing &)=default
 
 ProcessContextReplacing (ProcessContextReplacing &&)=default
 
const ConstAudioBlockTypegetInputBlock () const noexcept
 Returns the audio block to use as the input to a process function.
 
AudioBlockTypegetOutputBlock () const noexcept
 Returns the audio block to use as the output to a process function.
 

Static Public Member Functions

static constexpr bool usesSeparateInputAndOutputBlocks ()
 All process context classes will define this constant method so that templated code can determine whether the input and output blocks refer to the same buffer, or to two different ones.
 

Public Attributes

bool isBypassed
 If set to true, then a processor's process() method is expected to do whatever is appropriate for it to be in a bypassed state.
 

Detailed Description

template<typename ContextSampleType>
struct juce::dsp::ProcessContextReplacing< ContextSampleType >

Contains context information that is passed into an algorithm's process method.

This context is intended for use in situations where a single block is being used for both the input and output, so it will return the same object for both its getInputBlock() and getOutputBlock() methods.

See also
ProcessContextNonReplacing

@tags{DSP}

Definition at line 88 of file juce_ProcessContext.h.

Member Typedef Documentation

◆ AudioBlockType

The type of audio block that this context handles.

Definition at line 94 of file juce_ProcessContext.h.

◆ ConstAudioBlockType

Definition at line 95 of file juce_ProcessContext.h.

◆ SampleType

The type of a single sample (which may be a vector if multichannel).

Definition at line 92 of file juce_ProcessContext.h.

Constructor & Destructor Documentation

◆ ProcessContextReplacing()

juce::dsp::ProcessContextReplacing< ContextSampleType >::ProcessContextReplacing ( AudioBlockType block)
noexcept

Creates a ProcessContextReplacing that uses the given audio block.

Note that the caller must not delete the block while it is still in use by this object!

Definition at line 100 of file juce_ProcessContext.h.

Member Function Documentation

◆ getInputBlock()

Returns the audio block to use as the input to a process function.

Definition at line 106 of file juce_ProcessContext.h.

◆ getOutputBlock()

Returns the audio block to use as the output to a process function.

Definition at line 109 of file juce_ProcessContext.h.

◆ usesSeparateInputAndOutputBlocks()

static constexpr bool juce::dsp::ProcessContextReplacing< ContextSampleType >::usesSeparateInputAndOutputBlocks ( )
staticconstexpr

All process context classes will define this constant method so that templated code can determine whether the input and output blocks refer to the same buffer, or to two different ones.

Definition at line 115 of file juce_ProcessContext.h.

Member Data Documentation

◆ isBypassed

If set to true, then a processor's process() method is expected to do whatever is appropriate for it to be in a bypassed state.

Definition at line 120 of file juce_ProcessContext.h.


The documentation for this struct was generated from the following file: