Commit a944af6d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

sndio: require non-stupid audio sample formats

parent 5e4e58d2
......@@ -97,7 +97,25 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt)
par.bits, par.bps);
goto error;
}
if (par.sig != (par.bits != 8))
{
msg_Err (obj, "unsupported audio sample format (%ssigned)",
par.sig ? "" : "un");
goto error;
}
#ifdef WORDS_BIGENDIAN
if (par.le)
{
msg_Err (obj, "unsupported audio sample format (little endian)");
goto error;
}
#else
if (!par.le)
{
msg_Err (obj, "unsupported audio sample format (big endian)");
goto error;
}
#endif
switch (par.bits)
{
case 8:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment