all repos — mgba @ 10fc916425cbd4650bf8c8a56f8c9428bed052d7

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 "common.h"
 5
 6#include <SDL.h>
 7
 8struct GBASDLAudio {
 9	SDL_AudioSpec desiredSpec;
10	SDL_AudioSpec obtainedSpec;
11	float drift;
12	float ratio;
13	struct GBAAudio* audio;
14	struct GBAThread* thread;
15};
16
17bool GBASDLInitAudio(struct GBASDLAudio* context);
18void GBASDLDeinitAudio(struct GBASDLAudio* context);
19
20#endif