summaryrefslogtreecommitdiff
path: root/src/wav.h
diff options
context:
space:
mode:
authorsteven-na <noreply.github@stvnc.dev>2026-07-31 20:40:49 -0700
committersteven-na <noreply.github@stvnc.dev>2026-07-31 20:40:49 -0700
commit9b0b3d9d19f5adbf73423f9146974bf9213624d5 (patch)
tree34740bbb10bc49c4cb739a7dc74fb3333ae6e3bf /src/wav.h
parent90cc196e4d2c263ee2898162eddc691aac672d7f (diff)
Wav funcs mostly complete
Diffstat (limited to 'src/wav.h')
-rw-r--r--src/wav.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/wav.h b/src/wav.h
index 773cc2a..7e3c861 100644
--- a/src/wav.h
+++ b/src/wav.h
@@ -3,6 +3,8 @@
#include "common.h"
#include "smrt_arena.h"
+#include <stdio.h>
+
#define WAV_DATA_BASE_POS sizeof(wav_data_t)
typedef struct {
@@ -42,6 +44,6 @@ typedef struct {
} wav_fmt_chunk_t;
#pragma pack(pop)
- wav_data_t load_wav_file(smrt_arena_t *arena, char *filename, wav_master_chunk_t *master_o, wav_fmt_chunk_t *format_o);
- b32 write_wav_file(char *filename, wav_fmt_chunk_t *fmt_chunk_i, wav_data_t data_i);
-wav_fmt_chunk_t make_wav_fmt_chunk(u32 num_channels, u32 sample_rate, u16 bits_per_sample, wav_data_t data_i);
+ wav_data_t load_wav_file(smrt_arena_t *arena, FILE *wav_file, wav_master_chunk_t *master_o, wav_fmt_chunk_t *format_o);
+ b32 write_wav_file(FILE *wav_file, wav_fmt_chunk_t *fmt_chunk_i, wav_data_t data_i);
+wav_fmt_chunk_t make_wav_fmt_chunk(u32 num_channels, u32 sample_rate, u16 bits_per_sample);