summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/osc.c1
-rw-r--r--src/osc.h7
-rw-r--r--src/osc_sin.c1
-rw-r--r--src/osc_sound.c1
-rw-r--r--src/osc_sqr.c1
-rw-r--r--src/osc_tri.c2
6 files changed, 0 insertions, 13 deletions
diff --git a/src/osc.c b/src/osc.c
index 8ce915c..c3c5d48 100644
--- a/src/osc.c
+++ b/src/osc.c
@@ -77,7 +77,6 @@ osc_load_wav(osc_t * osc, const char * path)
}
osc->len = fileInfo.frames;
- osc->end = fileInfo.frames;
osc->data = (float *) malloc(sizeof(float) * fileInfo.frames);
// Read the WAV file into the buffer
diff --git a/src/osc.h b/src/osc.h
index 8b6fdea..9cd0472 100644
--- a/src/osc.h
+++ b/src/osc.h
@@ -36,7 +36,6 @@ typedef struct osc_t {
float * data;
long len;
long start;
- long end;
enum osc_type type;
const struct osc_ops * ops;
} osc_t;
@@ -46,7 +45,6 @@ typedef struct osc_t {
.data = 0, \
.len = _len, \
.start = 0, \
- .end = _len, \
.type = _type, \
};
@@ -70,8 +68,6 @@ osc_t * make_tri(const char * name);
void \
set_##osc##_start(long start); \
void \
- set_##osc##_end(long end); \
- void \
set_##osc##_len(long len); \
float \
get_##osc##_len(); \
@@ -86,9 +82,6 @@ osc_t * make_tri(const char * name);
set_##osc##_start(long start) \
{ OSC_##osc.start = start; } \
void \
- set_##osc##_end(long end) \
- { OSC_##osc.end = end; } \
- void \
set_##osc##_len(long len) \
{ OSC_##osc.len = len; } \
float \
diff --git a/src/osc_sin.c b/src/osc_sin.c
index 79a1726..8decddd 100644
--- a/src/osc_sin.c
+++ b/src/osc_sin.c
@@ -4,7 +4,6 @@ osc_t OSC_sin = {
.name = "f_sin",
.len = 1,
.start = 0,
- .end = 1,
};
float
diff --git a/src/osc_sound.c b/src/osc_sound.c
index cbdd7b5..e919e96 100644
--- a/src/osc_sound.c
+++ b/src/osc_sound.c
@@ -7,7 +7,6 @@ osc_t OSC_sound = {
.data = 0,
.len = 0,
.start = 0,
- .end = 0,
.type = WAVE,
};
diff --git a/src/osc_sqr.c b/src/osc_sqr.c
index 9b68059..130ede6 100644
--- a/src/osc_sqr.c
+++ b/src/osc_sqr.c
@@ -4,7 +4,6 @@ osc_t OSC_sqr = {
.name = "f_sqr",
.len = 1,
.start = 0,
- .end = 1,
};
float
diff --git a/src/osc_tri.c b/src/osc_tri.c
index fc3665d..f0c9951 100644
--- a/src/osc_tri.c
+++ b/src/osc_tri.c
@@ -3,7 +3,6 @@
osc_t OSC_tri = {
.name = "w_triangle",
.start = 0,
- .end = 4,
.len = 4,
};
@@ -61,7 +60,6 @@ make_tri(const char * name)
osc->data = NULL;
osc->len = 2;
osc->start = 0;
- osc->end = 2;
osc->type = WAVE;
osc->ops = &osc_operations;