diff options
author | Chris Robinson <[email protected]> | 2020-08-26 17:15:30 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-08-26 17:15:30 -0700 |
commit | 577a8234f21cf2d62e0aec8ad202cc697ac4d40d (patch) | |
tree | 8faf1b33c348d77090e4cbd9d18118a8ce9f686d /examples/common | |
parent | 9dab2db33b164393d92b98cd38f83a0a98dbe8b6 (diff) |
Recognize float32 format names for the example healpers
Diffstat (limited to 'examples/common')
-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"; } |