libdragon
Loading...
Searching...
No Matches
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
38 int format;
39 void *ext;
40} wav64_t;
41
51void wav64_open(wav64_t *wav, const char *fn);
52
54void wav64_set_loop(wav64_t *wav, bool loop);
55
65void wav64_play(wav64_t *wav, int ch);
66
74
75
81void wav64_close(wav64_t *wav);
82
83#ifdef __cplusplus
84}
85#endif
86
87#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
int format
Internal format of the file.
Definition wav64.h:38
void wav64_set_loop(wav64_t *wav, bool loop)
Configure a WAV64 file for looping playback.
Definition wav64.c:325
void wav64_open(wav64_t *wav, const char *fn)
Open a WAV64 file for playback.
Definition wav64.c:254
void wav64_close(wav64_t *wav)
Close a WAV64 file.
Definition wav64.c:346
void * ext
Pointer to extended data (internal use)
Definition wav64.h:39
int wav64_get_bitrate(wav64_t *wav)
Get the (possibly compressed) bitrate of the WAV64 file.
Definition wav64.c:336
void wav64_play(wav64_t *wav, int ch)
Start playing a WAV64 file.
Definition wav64.c:317
uint32_t rom_addr
Absolute ROM address of WAV64.
Definition wav64.h:36
WAV64 structure.
Definition wav64.h:28