VAE - Virtual Audio Engine 1
Small Data Driven Audio Engine
vae_voice_pan.hpp
Go to the documentation of this file.
1#ifndef _VAE_VOICE_PAN
2#define _VAE_VOICE_PAN
3
4#include "../vae_types.hpp"
5#include "../vae_config.hpp"
6#include <limits>
7
8namespace vae { namespace core {
9 /**
10 * @brief Data to interpolate panning between blocks or do manual pan.
11 * @details Extends Voice with channel volumes for interpolation.
12 */
13 struct VoicePan {
15 // StackBuffer<Sample, StaticConfig::MaxChannels> phases; // don't thing we need phase for now
16
18 for (int i = 0; i < StaticConfig::MaxChannels; i++) {
19 volumes[i] = 1.0;
20 }
21 }
22 };
23
24 constexpr int _VAE_VOICE_PAN_PIP_SIZE = sizeof(VoicePan);
25
26} } // core::vae
27
28#endif // _VAE_VOICE_PAN
constexpr unsigned char MaxChannels
Maximum channel count used to pre allocate buffers.
Definition: vae.hpp:268
constexpr int _VAE_VOICE_PAN_PIP_SIZE
Contains Typedefinitions and basic structures use by the public API and internally.
Definition: vae.hpp:31
float Sample
Default sample types used where ever possible, changing this means the engine needs to be recompiled,...
Definition: vae.hpp:32
Data to interpolate panning between blocks or do manual pan.
Sample volumes[StaticConfig::MaxChannels]