This commit is contained in:
2026-02-19 23:10:41 +01:00
commit d935aeaf9a
13 changed files with 8350 additions and 0 deletions

18
wav.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef WAV_H
#define WAV_H
#include <stdio.h>
#include <stdint.h>
typedef struct {
FILE *file;
uint32_t sample_rate;
uint32_t samples_written;
} wav_t;
int wave_open(wav_t *wav, const char *filename, uint32_t sample_rate);
void wave_write_sample(wav_t *wav, int16_t sample);
void wave_close(wav_t *wav);
#endif // !WAV_H