aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-06-07 11:50:16 -0700
committerChris Robinson <[email protected]>2020-06-07 11:50:16 -0700
commitab3ccb513a0c18a380411069e0cfb9c856b02b05 (patch)
tree7f22078c5479db769daefca101e69e748bedf609
parent2a324d34be37ffb7129a6008a4e0b79ee2307d63 (diff)
Check the returned sample endianess with sndio
-rw-r--r--alc/backends/sndio.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/alc/backends/sndio.cpp b/alc/backends/sndio.cpp
index f91fff9e..8af83226 100644
--- a/alc/backends/sndio.cpp
+++ b/alc/backends/sndio.cpp
@@ -194,6 +194,12 @@ bool SndioPlayback::reset()
ERR("Padded samples not supported (%u of %u bits)\n", par.bits, par.bps*8);
return false;
}
+ if(par.le != SIO_LE_NATIVE)
+ {
+ ERR("Non-native-endian samples not supported (got %s-endian)\n",
+ par.le ? "little" : "big");
+ return false;
+ }
mDevice->Frequency = par.rate;