Check the returned sample endianess with sndio

This commit is contained in:
Chris Robinson
2020-06-07 11:50:16 -07:00
parent 2a324d34be
commit ab3ccb513a
+6
View File
@@ -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;