LMMS
Loading...
Searching...
No Matches
juce_ProcessContext.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26namespace juce
27{
28namespace dsp
29{
30
48
49constexpr bool operator== (const ProcessSpec& a, const ProcessSpec& b)
50{
51 return a.sampleRate == b.sampleRate
52 && a.maximumBlockSize == b.maximumBlockSize
53 && a.numChannels == b.numChannels;
54}
55
56constexpr bool operator!= (const ProcessSpec& a, const ProcessSpec& b) { return ! (a == b); }
57
58//==============================================================================
73
74//==============================================================================
86template <typename ContextSampleType>
125
126//==============================================================================
139template <typename ContextSampleType>
141{
142public:
144 using SampleType = ContextSampleType;
148
153 : inputBlock (input), outputBlock (output)
154 {
155 // If the input and output blocks are the same then you should use
156 // ProcessContextReplacing instead.
157 jassert (input != output);
158 }
159
162
165
168
173 static constexpr bool usesSeparateInputAndOutputBlocks() { return true; }
174
178 bool isBypassed = false;
179
180private:
183};
184
185} // namespace dsp
186} // namespace juce
#define noexcept
Definition DistrhoDefines.h:72
uint8_t a
Definition Spc_Cpu.h:141
Definition juce_ReferenceCountedObject.h:247
Definition juce_AudioBlock.h:70
#define jassert(expression)
Definition juce_AudioBlock.h:29
Definition carla_juce.cpp:31
unsigned int uint32
Definition juce_MathsFunctions.h:45
AudioBlockType & outputBlock
Definition juce_ProcessContext.h:182
static constexpr bool usesSeparateInputAndOutputBlocks()
Definition juce_ProcessContext.h:173
AudioBlockType & getOutputBlock() const noexcept
Definition juce_ProcessContext.h:167
AudioBlock< const SampleType > ConstAudioBlockType
Definition juce_ProcessContext.h:147
const ConstAudioBlockType & getInputBlock() const noexcept
Definition juce_ProcessContext.h:164
ProcessContextNonReplacing(const ConstAudioBlockType &input, AudioBlockType &output) noexcept
Definition juce_ProcessContext.h:152
AudioBlock< SampleType > AudioBlockType
Definition juce_ProcessContext.h:146
ProcessContextNonReplacing(const ProcessContextNonReplacing &)=default
bool isBypassed
Definition juce_ProcessContext.h:178
ConstAudioBlockType inputBlock
Definition juce_ProcessContext.h:181
ProcessContextNonReplacing(ProcessContextNonReplacing &&)=default
ContextSampleType SampleType
Definition juce_ProcessContext.h:144
ConstAudioBlockType constBlock
Definition juce_ProcessContext.h:123
ProcessContextReplacing(AudioBlockType &block) noexcept
Definition juce_ProcessContext.h:99
ContextSampleType SampleType
Definition juce_ProcessContext.h:91
AudioBlock< const SampleType > ConstAudioBlockType
Definition juce_ProcessContext.h:94
ProcessContextReplacing(ProcessContextReplacing &&)=default
static constexpr bool usesSeparateInputAndOutputBlocks()
Definition juce_ProcessContext.h:114
const ConstAudioBlockType & getInputBlock() const noexcept
Definition juce_ProcessContext.h:105
AudioBlockType & getOutputBlock() const noexcept
Definition juce_ProcessContext.h:108
bool isBypassed
Definition juce_ProcessContext.h:119
AudioBlockType & ioBlock
Definition juce_ProcessContext.h:122
ProcessContextReplacing(const ProcessContextReplacing &)=default
AudioBlock< SampleType > AudioBlockType
Definition juce_ProcessContext.h:93
Definition juce_ProcessContext.h:38
uint32 numChannels
Definition juce_ProcessContext.h:46
double sampleRate
Definition juce_ProcessContext.h:40
uint32 maximumBlockSize
Definition juce_ProcessContext.h:43
Definition juce_ProcessContext.h:67
ReferenceCountedObjectPtr< ProcessorState > Ptr
Definition juce_ProcessContext.h:71
b
Definition crypt.c:628
#define const
Definition zconf.h:137