adjust comparison a bit

This commit is contained in:
Nishi
2024-08-06 07:09:05 +09:00
committed by David Reid
parent 98f6e923cc
commit efa270af91
+2 -2
View File
@@ -36272,7 +36272,7 @@ static ma_result ma_context_get_device_info_from_fd__audio4(ma_context* pContext
ma_uint32 channels;
ma_uint32 sampleRate;
#if defined(__NetBSD__) && (__NetBSD_Version__ > 900000000)
#if defined(__NetBSD__) && (__NetBSD_Version__ >= 900000000)
if (ioctl(fd, AUDIO_GETFORMAT, &fdInfo) < 0) {
return MA_ERROR;
}
@@ -36558,7 +36558,7 @@ static ma_result ma_device_init_fd__audio4(ma_device* pDevice, const ma_device_c
/* We're using a default device. Get the info from the /dev/audioctl file instead of /dev/audio. */
int fdctl = open(pDefaultDeviceCtlNames[iDefaultDevice], fdFlags, 0);
if (fdctl != -1) {
#if defined(__NetBSD__) && (__NetBSD_Version__ > 900000000)
#if defined(__NetBSD__) && (__NetBSD_Version__ >= 900000000)
fdInfoResult = ioctl(fdctl, AUDIO_GETFORMAT, &fdInfo);
#else
fdInfoResult = ioctl(fdctl, AUDIO_GETINFO, &fdInfo);