mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
Minor cleanup.
This commit is contained in:
+1
-3
@@ -39744,8 +39744,8 @@ static ma_result ma_device_step__oss(ma_device* pDevice, ma_blocking_mode blocki
|
|||||||
fd_set fdsRead;
|
fd_set fdsRead;
|
||||||
fd_set fdsWrite;
|
fd_set fdsWrite;
|
||||||
int fdMax;
|
int fdMax;
|
||||||
ma_result result;
|
|
||||||
int selectResult;
|
int selectResult;
|
||||||
|
ma_result result;
|
||||||
|
|
||||||
if (blockingMode == MA_BLOCKING_MODE_NON_BLOCKING) {
|
if (blockingMode == MA_BLOCKING_MODE_NON_BLOCKING) {
|
||||||
tv.tv_sec = 0;
|
tv.tv_sec = 0;
|
||||||
@@ -39773,12 +39773,10 @@ static ma_result ma_device_step__oss(ma_device* pDevice, ma_blocking_mode blocki
|
|||||||
selectResult = select(fdMax + 1, &fdsRead, &fdsWrite, NULL, pTimeout);
|
selectResult = select(fdMax + 1, &fdsRead, &fdsWrite, NULL, pTimeout);
|
||||||
} while (selectResult < 0 && errno == EINTR);
|
} while (selectResult < 0 && errno == EINTR);
|
||||||
|
|
||||||
|
|
||||||
if (!ma_device_is_started(pDevice)) {
|
if (!ma_device_is_started(pDevice)) {
|
||||||
return MA_DEVICE_NOT_STARTED;
|
return MA_DEVICE_NOT_STARTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (deviceType == ma_device_type_capture || deviceType == ma_device_type_duplex) {
|
if (deviceType == ma_device_type_capture || deviceType == ma_device_type_duplex) {
|
||||||
if (FD_ISSET(pDeviceStateOSS->fdCapture, &fdsRead)) {
|
if (FD_ISSET(pDeviceStateOSS->fdCapture, &fdsRead)) {
|
||||||
ma_uint32 framesRead;
|
ma_uint32 framesRead;
|
||||||
|
|||||||
Reference in New Issue
Block a user