returnmal_post_error(pDevice,"OSS: Failed to open device.",MAL_NO_DEVICE);
}
...
...
@@ -4343,21 +4512,24 @@ static mal_result mal_device_init__oss(mal_context* pContext, mal_device_type ty
// Format.
intossFormat=AFMT_U8;
switch(pConfig->format){
casemal_format_s16:ossFormat=AFMT_S16_LE;
casemal_format_s24:ossFormat=AFMT_S16_LE;// The OSS3 documentation says that they use 32-bits for 24-bit formats. We defined 24-bits as tightly packed, so we're just going to fall back to s16.
casemal_format_f32:ossFormat=AFMT_S16_LE;// As above, because OSS3 does not support f32.