lemur/audio.h

15 lines
296 B
C
Raw Normal View History

2024-10-22 00:52:51 +00:00
#ifndef SHROOMS_VB_NATIVE_AUDIO_
#define SHROOMS_VB_NATIVE_AUDIO_
2024-10-22 03:31:55 +00:00
#include <SDL3/SDL.h>
2024-10-22 00:52:51 +00:00
#include <stdbool.h>
typedef struct {
2024-10-22 03:31:55 +00:00
SDL_AudioStream *stream;
2024-10-22 00:52:51 +00:00
bool paused;
} AudioContext;
int audioInit(AudioContext *aud);
int audioUpdate(AudioContext *aud, void *data, uint32_t bytes);
#endif