VAE - Virtual Audio Engine 1
Small Data Driven Audio Engine
vae::core::EffectsProcessor Class Reference

#include <vae_effects_processor.hpp>

Collaboration diagram for vae::core::EffectsProcessor:

Public Member Functions

void init ()
 
void mix (Effect &effect, ScratchBuffer &buffer)
 

Private Attributes

ScratchBuffer mScratchBuffer
 

Detailed Description

Definition at line 10 of file vae_effects_processor.hpp.

Member Function Documentation

◆ init()

void vae::core::EffectsProcessor::init ( )
inline

Definition at line 13 of file vae_effects_processor.hpp.

13 {
15 }
bool resize(const Size length, uchar channels)
! Will not keep the contents! Resizes the buffer to the desired length and channel count.
constexpr Size MaxBlock
Maximum block size.
Definition: vae.hpp:276
constexpr unsigned char MaxChannels
Maximum channel count used to pre allocate buffers.
Definition: vae.hpp:268
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mix()

void vae::core::EffectsProcessor::mix ( Effect effect,
ScratchBuffer buffer 
)
inline

Definition at line 16 of file vae_effects_processor.hpp.

16 {
17 if (effect.effect == nullptr || effect.bypassed) { return; }
18 VAE_PROFILER_SCOPE_NAMED("Process Effect")
19 mScratchBuffer.set(buffer);
20 mScratchBuffer.setValidSize(buffer.validSize());
21 VAE_ASSERT(effect.effect->getNumInputs() == effect.effect->getNumOutputs())
22 VAE_ASSERT(buffer.channels() <= effect.effect->getNumInputs())
23 effect.effect->process(effect, mScratchBuffer, buffer);
24 }
static void set(void *dst, const unsigned char val, size_t size)
memset wrapper
Definition: TMemoryUtil.hpp:40
#define VAE_PROFILER_SCOPE_NAMED(name)
Profiles a scope and names it.
#define VAE_ASSERT(condition)
Definition: vae_util.hpp:11
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ mScratchBuffer

ScratchBuffer vae::core::EffectsProcessor::mScratchBuffer
private

Definition at line 11 of file vae_effects_processor.hpp.


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