src/platform/sdl/sdl-audio.h (view raw)
1#ifndef SDL_AUDIO_H
2#define SDL_AUDIO_H
3
4#include "common.h"
5
6#include <SDL.h>
7
8struct GBASDLAudio {
9 // Input
10 size_t samples;
11
12 // State
13 SDL_AudioSpec desiredSpec;
14 SDL_AudioSpec obtainedSpec;
15 float drift;
16 float ratio;
17
18 struct GBAAudio* audio;
19 struct GBAThread* thread;
20};
21
22bool GBASDLInitAudio(struct GBASDLAudio* context);
23void GBASDLDeinitAudio(struct GBASDLAudio* context);
24
25#endif