all repos — mgba @ a1fb90635fa80182447a8c2a1d6a21345a20c45d

mGBA Game Boy Advance Emulator

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