aboutsummaryrefslogtreecommitdiffstats
path: root/examples/alstream.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-03-05 11:39:20 -0800
committerChris Robinson <[email protected]>2023-03-05 11:39:20 -0800
commit28ec3afb7949be155aaa477c6e8c7358ac309459 (patch)
treed50af7a052df4cf0acd7d540f7fd8b06770dc5ff /examples/alstream.c
parent442cfdd14ea01f8c9d494d544213b40dc696841f (diff)
Fix compiling examples with an older libsndfile
Which lack the SF_FORMAT_MPEG_LAYER_* enums.
Diffstat (limited to 'examples/alstream.c')
-rw-r--r--examples/alstream.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/alstream.c b/examples/alstream.c
index e89481b1..a61680d2 100644
--- a/examples/alstream.c
+++ b/examples/alstream.c
@@ -148,9 +148,12 @@ static int OpenPlayerFile(StreamPlayer *player, const char *filename)
case SF_FORMAT_DOUBLE:
case SF_FORMAT_VORBIS:
case SF_FORMAT_OPUS:
- case SF_FORMAT_MPEG_LAYER_I:
- case SF_FORMAT_MPEG_LAYER_II:
- case SF_FORMAT_MPEG_LAYER_III:
+ case SF_FORMAT_ALAC_20:
+ case SF_FORMAT_ALAC_24:
+ case SF_FORMAT_ALAC_32:
+ case 0x0080/*SF_FORMAT_MPEG_LAYER_I*/:
+ case 0x0081/*SF_FORMAT_MPEG_LAYER_II*/:
+ case 0x0082/*SF_FORMAT_MPEG_LAYER_III*/:
if(alIsExtensionPresent("AL_EXT_FLOAT32"))
player->sample_type = Float;
break;