Updated libs

This commit is contained in:
2021-05-28 12:11:57 -04:00
parent 39338325e6
commit 77893f3e1e
14 changed files with 42 additions and 37 deletions

View File

@ -34,7 +34,7 @@ size_t Droplet::GetChannelMax() {
}
void Droplet::DrawName(std::string name) {
WriteCenteredString(*patch, (screen_min + screen_max) / 2, 0,
WriteCenteredString(patch, (screen_min + screen_max) / 2, 0,
Font_6x8, name);
}

View File

@ -52,8 +52,8 @@ public:
* @param out the audio outputs for the patch
* @param size the number of inputs and outputs
*/
virtual void Process(float** in,
float** out,
virtual void Process(AudioHandle::InputBuffer in,
AudioHandle::OutputBuffer out,
size_t size)=0;
/*

View File

@ -9,7 +9,7 @@ NoiseDroplet::NoiseDroplet(DaisyPatch* m_patch,
void NoiseDroplet::Control() {}
void NoiseDroplet::Process(float** in, float** out, size_t size) {
void NoiseDroplet::Process(AudioHandle::InputBuffer in, AudioHandle::OutputBuffer out, size_t size) {
for (size_t i = 0; i < size; i += 2) {
float sig = noise.Process();
for (size_t chn = GetChannelMin(); chn < GetChannelMax(); chn++) {

View File

@ -33,8 +33,8 @@ public:
* @param out the audio outputs for the patch
* @param size the number of inputs and outputs
*/
void Process(float** in,
float** out,
void Process(AudioHandle::InputBuffer in,
AudioHandle::OutputBuffer out,
size_t size);
/*

View File

@ -48,7 +48,7 @@ void VCODroplet::Control() {
AdjustWaveShape(Patch()->encoder.Increment());
}
void VCODroplet::Process(float** in, float** out, size_t size) {
void VCODroplet::Process(AudioHandle::InputBuffer in, AudioHandle::OutputBuffer out, size_t size) {
float sig, freq, amp = 1.0;
Patch()->ProcessAnalogControls();
@ -79,13 +79,13 @@ void VCODroplet::Process(float** in, float** out, size_t size) {
void VCODroplet::Draw() {
SetWaveState(wave);
if (GetState() == DropletState::kFull) {
WriteCenteredString(*Patch(),
WriteCenteredString(Patch(),
(GetScreenMax()-GetScreenMin())/2,
54,
Font_6x8,
WaveToString(wave));
} else {
WriteDoubleCentered(*Patch(),
WriteDoubleCentered(Patch(),
GetScreenMin() +
(GetScreenMax()-GetScreenMin())/2,
54,

View File

@ -67,8 +67,8 @@ public:
* @param out the audio outputs for the patch
* @param size the number of inputs and outputs
*/
void Process(float** in,
float** out,
void Process(AudioHandle::InputBuffer in,
AudioHandle::OutputBuffer out,
size_t size);
/*