nice refactors, now way cleaner to work with!

This commit is contained in:
2026-04-07 17:20:42 +02:00
parent 966c15cffb
commit bdc58f5b48
17 changed files with 61 additions and 31 deletions

18
include/sound/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