all repos — mgba @ d8654f3b883db94117f5bf9490231fe9745ef9ea

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};
15
16bool GBASDLInitAudio(struct GBASDLAudio* context);
17void GBASDLDeinitAudio(struct GBASDLAudio* context);
18
19#endif