// Try opening a temporary device first so we can get version information. This is closed at the end.
intfd=mal_open_temp_device__oss();
if(fd==-1){
returnMAL_NO_BACKEND;// Looks liks OSS isn't installed, or there are no available devices.
returnmal_context_post_error(pContext,NULL,"[OSS] Failed to open temporary device for retrieving system properties.",MAL_NO_BACKEND);// Looks liks OSS isn't installed, or there are no available devices.
// The object returned by SNDCTL_SYSINFO will have the information we're after.
intfd=mal_open_temp_device__oss();
if(fd==-1){
returnMAL_ERROR;// Failed to open a temporary device for retrieving the system info.
returnmal_context_post_error(pContext,NULL,"[OSS] Failed to open a temporary device for retrieving system information used for device enumeration.",MAL_NO_BACKEND);
}
oss_sysinfosi;
...
...
@@ -5343,7 +5355,7 @@ static mal_result mal_device_init__oss(mal_context* pContext, mal_device_type ty