summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlara Modin <klarasmodin@gmail.com>2020-08-30 20:14:16 +0200
committerKlara Modin <klarasmodin@gmail.com>2020-08-30 20:14:16 +0200
commit572a25e37babc7188e9342b7c48355727aabead2 (patch)
tree2fe5dc041eb56fcaa438510d65f77d237e55feac
parentbd93b48cc8bf1998a85f7b9e33737466ca73b7db (diff)
add zero func
-rw-r--r--genwav.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/genwav.c b/genwav.c
index c9d030c..d2298fe 100644
--- a/genwav.c
+++ b/genwav.c
@@ -221,6 +221,10 @@ double linear(double x) {
return x;
}
+double zero(double x) {
+ return 0;
+}
+
void put_something(struct wav_header *header, int16_t data[], struct instrument *inst, double frequency, int16_t amp, size_t length, int divisions)
{
size_t pos = 0;