diff options
-rw-r--r-- | examples/common/alhelpers.c | 11 |
1 files 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"; } |