summaryrefslogtreecommitdiffstats
path: root/src/osc_sound.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osc_sound.c')
-rw-r--r--src/osc_sound.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/osc_sound.c b/src/osc_sound.c
index 10da73b..fc06a26 100644
--- a/src/osc_sound.c
+++ b/src/osc_sound.c
@@ -34,6 +34,16 @@ osc_sound(float offset)
OSC_sound.data[osc_next_index(&OSC_sound, offset)]);
}
+void
+osc_sound_change_wavetable(char *path)
+{
+ float * old_data = OSC_sound.data;
+ osc_load_wav(&OSC_sound, path);
+ OSC_sound.start = wvt_size*0;
+ OSC_sound.len = OSC_sound.start + wvt_size;
+ free(old_data);
+}
+
float
osc_sound_next(float f, float offset)
{