ref: a276af662afd29ff92259e2a2c782a7421759072
parent: 3e0fc93f076eb04054d1145808d22fa0423fcc02
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Mon Jan 1 20:44:53 EST 2024
openal: use our own type for buffer callback
--- a/snd_openal.c
+++ b/snd_openal.c
@@ -64,7 +64,8 @@
static ALCchar *(*qalcGetStringiSOFT)(ALCdevice *, ALenum, ALsizei);
static ALCboolean (*qalcResetDeviceSOFT)(ALCdevice *, const ALCint *attr);
static ALCboolean *(*qalcReopenDeviceSOFT)(ALCdevice *, const ALCchar *devname, const ALCint *attr);
-static void (*qalBufferCallbackSOFT)(ALuint buf, ALenum fmt, ALsizei freq, ALBUFFERCALLBACKTYPESOFT cb, ALvoid *aux);
+typedef ALsizei (*qalBufferCallbackTypeSOFT)(ALvoid *, ALvoid *, ALsizei);
+static void (*qalBufferCallbackSOFT)(ALuint buf, ALenum fmt, ALsizei freq, qalBufferCallbackTypeSOFT cb, ALvoid *aux);
#define ALERR() alcheckerr(__FILE__, __LINE__)