From ab3ccb513a0c18a380411069e0cfb9c856b02b05 Mon Sep 17 00:00:00 2001 From: Chris Robinson <chris.kcat@gmail.com> Date: Sun, 7 Jun 2020 11:50:16 -0700 Subject: Check the returned sample endianess with sndio --- alc/backends/sndio.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit v1.2.3