From 577a8234f21cf2d62e0aec8ad202cc697ac4d40d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 26 Aug 2020 17:15:30 -0700 Subject: Recognize float32 format names for the example healpers --- examples/common/alhelpers.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/examples/common/alhelpers.c b/examples/common/alhelpers.c index 0febef43..c432ea46 100644 --- a/examples/common/alhelpers.c +++ b/examples/common/alhelpers.c @@ -36,6 +36,7 @@ #include "AL/al.h" #include "AL/alc.h" +#include "AL/alext.h" /* InitAL opens a device and sets up a context using default attributes, making @@ -107,10 +108,12 @@ const char *FormatName(ALenum format) { switch(format) { - case AL_FORMAT_MONO8: return "Mono, U8"; - case AL_FORMAT_MONO16: return "Mono, S16"; - case AL_FORMAT_STEREO8: return "Stereo, U8"; - case AL_FORMAT_STEREO16: return "Stereo, S16"; + case AL_FORMAT_MONO8: return "Mono, U8"; + case AL_FORMAT_MONO16: return "Mono, S16"; + case AL_FORMAT_MONO_FLOAT32: return "Mono, Float32"; + case AL_FORMAT_STEREO8: return "Stereo, U8"; + case AL_FORMAT_STEREO16: return "Stereo, S16"; + case AL_FORMAT_STEREO_FLOAT32: return "Stereo, Float32"; } return "Unknown Format"; } -- cgit v1.2.3