Fix OSS build.

This commit is contained in:
David Reid
2019-02-19 08:15:18 +10:00
parent 79e833135c
commit 581b90d2d3
2 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -19025,8 +19025,8 @@ mal_result mal_device_init_fd__oss(mal_context* pContext, const mal_device_confi
ossFragmentSizePower += 1;
}
ossFragment = (int)((pDevice->periods << 16) | ossFragmentSizePower);
ossResult = ioctl(pDevice->oss.fd, SNDCTL_DSP_SETFRAGMENT, &ossFragment);
ossFragment = (int)((pConfig->periods << 16) | ossFragmentSizePower);
ossResult = ioctl(fd, SNDCTL_DSP_SETFRAGMENT, &ossFragment);
if (ossResult == -1) {
close(fd);
return mal_post_error(pDevice, MAL_LOG_LEVEL_ERROR, "[OSS] Failed to set fragment size and period count.", MAL_FORMAT_NOT_SUPPORTED);