all repos — mgba @ 8fc3ef27ad646863b156cb68e122eeadc0301f67

mGBA Game Boy Advance Emulator

src/platform/sdl/sdl-audio.h (view raw)

 1#ifndef SDL_AUDIO_H
 2#define SDL_AUDIO_H
 3
 4#include "util/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