returnmal_post_error(pDevice,"OSS: Failed to open device.",MAL_NO_DEVICE);
}
// The OSS documantation is very clear about the order we should be initializing the device's properties:
// 1) Format
// 2) Channels
// 3) Sample rate.
// 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.