8#ifndef __LIBDRAGON_WAV64_H
9#define __LIBDRAGON_WAV64_H
33typedef struct wav64_s {
70#define wav64_init_compression(level) ({ \
74 case 3: __wav64_init_compression_lvl3(); break; \
75 default: assertf(0, "Unsupported compression level: %d", level); \
void __wav64_init_compression_lvl3(void)
Initialize wav64 compression level 3.
Definition wav64.c:188
int base_offset
Start of Wav64 data.
Definition wav64.h:42
waveform_t wave
waveform_t for this WAV64.
Definition wav64.h:38
int format
Internal format of the file.
Definition wav64.h:43
void wav64_set_loop(wav64_t *wav, bool loop)
Configure a WAV64 file for looping playback.
Definition wav64.c:156
int current_fd
File descriptor to read WAV64.
Definition wav64.h:41
void wav64_open(wav64_t *wav, const char *fn)
Open a WAV64 file for playback.
Definition wav64.c:103
void wav64_close(wav64_t *wav)
Close a WAV64 file.
Definition wav64.c:173
void * ext
Pointer to extended data (internal use)
Definition wav64.h:44
int wav64_get_bitrate(wav64_t *wav)
Get the (possibly compressed) bitrate of the WAV64 file.
Definition wav64.c:167
void wav64_play(wav64_t *wav, int ch)
Start playing a WAV64 file.
Definition wav64.c:148
WAV64 structure.
Definition wav64.h:33