diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2024-02-26 21:38:59 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2024-02-26 21:38:59 +0100 |
commit | 05f796fba0cef3cc62dc6df2f32317589e06eac6 (patch) | |
tree | d1df77a53c975a5e454455e2fec9a5f7e09a9927 | |
parent | b01453e4bf1fbec5fc0208d26333c1c3692a2b7a (diff) | |
download | saw-05f796fba0cef3cc62dc6df2f32317589e06eac6.zip |
Small fixes
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | source/saw/main.c | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -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__ |