summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-02-26 21:38:59 +0100
committerMitya Selivanov <automainint@guattari.tech>2024-02-26 21:38:59 +0100
commit05f796fba0cef3cc62dc6df2f32317589e06eac6 (patch)
treed1df77a53c975a5e454455e2fec9a5f7e09a9927
parentb01453e4bf1fbec5fc0208d26333c1c3692a2b7a (diff)
downloadsaw-05f796fba0cef3cc62dc6df2f32317589e06eac6.zip
Small fixes
-rw-r--r--README2
-rw-r--r--source/saw/main.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/README b/README
index d0aa147..85f7971 100644
--- a/README
+++ b/README
@@ -20,6 +20,8 @@ Algorithms
Primary design
+Work in progress, not an actual final design.
+
Basic UI
diff --git a/source/saw/main.c b/source/saw/main.c
index 721eb76..10912b0 100644
--- a/source/saw/main.c
+++ b/source/saw/main.c
@@ -1823,7 +1823,7 @@ static void saw_ui_sampler(saw_sampler_t *sampler, i64 x0, i64 y0,
&sample_rate, &count, NULL);
if (samples == NULL) {
- printf("drwav_open_file_and_read_pcm_frames_f32 failed.\n");
+ printf("drwav_open_memory_and_read_pcm_frames_f32 failed.\n");
fflush(stdout);
} else {
DA_RESIZE(sampler->data, count * 2);
@@ -3202,6 +3202,11 @@ static void saw_cleanup(void) {
for (i64 i = 0; i < TRACK_COUNT; i++)
if (saw_tracks[i].instrument == INSTRUMENT_SAMPLER)
saw_sampler_cleanup(&saw_tracks[i].sampler);
+
+ // Cleanup buffers
+ //
+ if (saw_drop_file_data.size != 0)
+ DA_DESTROY(saw_drop_file_data);
}
#ifdef __EMSCRIPTEN__