src/sdl/sdl-audio.h (view raw)
1#ifndef SDL_AUDIO_H
2#define SDL_AUDIO_H
3
4#include <SDL.h>
5
6struct StereoSample {
7 Sint16 left;
8 Sint16 right;
9};
10
11struct GBASDLAudio {
12 SDL_AudioSpec desiredSpec;
13 SDL_AudioSpec obtainedSpec;
14 float drift;
15 struct GBAAudio* audio;
16 struct StereoSample currentSample;
17};
18
19int GBASDLInitAudio(struct GBASDLAudio* context);
20void GBASDLDeinitAudio(struct GBASDLAudio* context);
21
22#endif