feat: add save/load thread and WAV file I/O for clip persistence

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-02 10:18:04 +00:00
parent c48394f341
commit f37cb5c0a6
6 changed files with 505 additions and 1 deletions

10
wav_io.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef WAV_IO_H
#define WAV_IO_H
#include <stdint.h>
#include <stddef.h>
int save_wav_float(const char *filename, const float *buffer, size_t num_samples, unsigned int sample_rate);
int load_wav_float(const char *filename, float **buffer, size_t *num_samples, unsigned int *sample_rate);
#endif