libdragon
wav64.h
Go to the documentation of this file.
1
7#ifndef __LIBDRAGON_WAV64_H
8#define __LIBDRAGON_WAV64_H
9
10#include "mixer.h"
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
28typedef struct {
34
36 uint32_t rom_addr;
37} wav64_t;
38
48void wav64_open(wav64_t *wav, const char *fn);
49
51void wav64_set_loop(wav64_t *wav, bool loop);
52
62void wav64_play(wav64_t *wav, int ch);
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif
RSP Audio mixer.
A waveform that can be played back through the mixer.
Definition: mixer.h:439
waveform_t wave
waveform_t for this WAV64.
Definition: wav64.h:33
void wav64_set_loop(wav64_t *wav, bool loop)
Configure a WAV64 file for looping playback.
Definition: wav64.c:92
void wav64_open(wav64_t *wav, const char *fn)
Open a WAV64 file for playback.
Definition: wav64.c:47
void wav64_play(wav64_t *wav, int ch)
Start playing a WAV64 file.
Definition: wav64.c:87
uint32_t rom_addr
Absolute ROM address of WAV64.
Definition: wav64.h:36
WAV64 structure.
Definition: wav64.h:28