Files
SeeSynth/utils.h
e1lama bcb75a65f9 feat: phase-based oscillators (#12)
Co-authored-by: HiveBeats <e1lama@protonmail.com>
Reviewed-on: #12
2023-08-06 20:17:16 +03:00

23 lines
546 B
C

#ifndef UTILS_H
#define UTILS_H
#include "stdio.h"
#include "assert.h"
#define write_log(format,args...) do { \
printf(format, ## args); \
} while(0)
//------------------------------------------------------------------------------------
// General SynthSound
//------------------------------------------------------------------------------------
typedef struct SynthSound {
float* samples;
size_t sample_count;
} SynthSound;
// frees the original sounds
SynthSound concat_sounds(SynthSound* sounds, size_t count);
#endif