comparison wave.h @ 2288:efc75ea79164

Support WAVE files in CUE sheets
author Michael Pavone <pavone@retrodev.com>
date Wed, 18 Jan 2023 23:31:44 -0800
parents 140af5509ce7
children
comparison
equal deleted inserted replaced
2287:8a918eb95ba8 2288:efc75ea79164
1 /* 1 /*
2 Copyright 2013 Michael Pavone 2 Copyright 2013 Michael Pavone
3 This file is part of BlastEm. 3 This file is part of BlastEm.
4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. 4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text.
5 */ 5 */
6 #ifndef WAVE_H_ 6 #ifndef WAVE_H_
7 #define WAVE_H_ 7 #define WAVE_H_
8 8
35 } wave_header; 35 } wave_header;
36 36
37 #pragma pack(pop) 37 #pragma pack(pop)
38 38
39 int wave_init(FILE * f, uint32_t sample_rate, uint16_t bits_per_sample, uint16_t num_channels); 39 int wave_init(FILE * f, uint32_t sample_rate, uint16_t bits_per_sample, uint16_t num_channels);
40 uint8_t wave_read_header(FILE *f, wave_header *header);
40 int wave_finalize(FILE * f); 41 int wave_finalize(FILE * f);
41 42
42 #endif //WAVE_H_ 43 #endif //WAVE_H_
43 44