diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/riff.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -19,19 +19,20 @@ static int header_write(xas_riff *riff) { xas_riff_wave_header header = { .riff = { { - .id = "RIFF", + .id = XAS_RIFF_HEADER_MAIN_ID, .size = sizeof(xas_riff_main_chunk) + sizeof(xas_riff_wave_chunk) + riff->size }, - .type = "WAVE" + .type = XAS_RIFF_HEADER_WAVE_ID, }, .wave = { { - .id = "fmt ", - .size = 16 + .id = XAS_RIFF_HEADER_WAVE_FMT_ID, + .size = sizeof(xas_riff_wave_chunk) + - sizeof(xas_riff_chunk) }, .type = XAS_RIFF_WAVE_DEFAULT_TYPE, @@ -43,7 +44,7 @@ static int header_write(xas_riff *riff) { }, { - .id = "data", + .id = XAS_RIFF_HEADER_WAVE_DATA_ID, .size = riff->size } }; |