aboutsummaryrefslogtreecommitdiffstats
path: root/examples/alhrtf.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-18 10:09:04 -0700
committerChris Robinson <[email protected]>2019-09-18 10:09:04 -0700
commit66565ca7a3cd63e242eedb0141341eb9450f0d4a (patch)
tree09ef30049942305dec9241fe896b8fad7685da11 /examples/alhrtf.c
parentda80a7c2b2e4a66856bec4d7b44c7a7df05a31a5 (diff)
Enable and fix some more warnings
Diffstat (limited to 'examples/alhrtf.c')
-rw-r--r--examples/alhrtf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/alhrtf.c b/examples/alhrtf.c
index f09f3e99..2be28a91 100644
--- a/examples/alhrtf.c
+++ b/examples/alhrtf.c
@@ -164,9 +164,9 @@ int main(int argc, char **argv)
}
/* Define a macro to help load the function pointers. */
-#define LOAD_PROC(d, x) ((x) = alcGetProcAddress((d), #x))
- LOAD_PROC(device, alcGetStringiSOFT);
- LOAD_PROC(device, alcResetDeviceSOFT);
+#define LOAD_PROC(d, T, x) ((x) = (T)alcGetProcAddress((d), #x))
+ LOAD_PROC(device, LPALCGETSTRINGISOFT, alcGetStringiSOFT);
+ LOAD_PROC(device, LPALCRESETDEVICESOFT, alcResetDeviceSOFT);
#undef LOAD_PROC
/* Check for the AL_EXT_STEREO_ANGLES extension to be able to also rotate