wip: adder

This commit is contained in:
2023-08-07 10:31:12 +04:00
parent 6561666f7a
commit 64fa5c9271
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
#pragma once
#include <vector>
#include "Oscillator.h"

View File

@@ -4,7 +4,7 @@ std::vector<float> & Adder::SumOscillators(const std::vector<Oscillator*> & osci
{
size_t sample_count = (size_t)(duration * SAMPLE_RATE);
std::vector<float> output;// = new std::vector<float>();
std::vector<float> output = new std::vector<float>();
output.reserve(sample_count);
for (size_t i = 0; i < sample_count; i++)