lemur/audio.h

15 lines
296 B
C

#ifndef SHROOMS_VB_NATIVE_AUDIO_
#define SHROOMS_VB_NATIVE_AUDIO_
#include <SDL3/SDL.h>
#include <stdbool.h>
typedef struct {
SDL_AudioStream *stream;
bool paused;
} AudioContext;
int audioInit(AudioContext *aud);
int audioUpdate(AudioContext *aud, void *data, uint32_t bytes);
#endif