mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
Fix unused parameter warnings on macOS.
This commit is contained in:
+7
-1
@@ -8388,6 +8388,8 @@ static ma_result ma_semaphore_init__posix(ma_context* pContext, int initialValue
|
|||||||
|
|
||||||
#if defined(MA_APPLE)
|
#if defined(MA_APPLE)
|
||||||
/* Not yet implemented for Apple platforms since sem_init() is deprecated. Need to use a named semaphore via sem_open() instead. */
|
/* Not yet implemented for Apple platforms since sem_init() is deprecated. Need to use a named semaphore via sem_open() instead. */
|
||||||
|
(void)initialValue;
|
||||||
|
(void)pSemaphore;
|
||||||
return MA_INVALID_OPERATION;
|
return MA_INVALID_OPERATION;
|
||||||
#else
|
#else
|
||||||
if (sem_init(&pSemaphore->posix.semaphore, 0, (unsigned int)initialValue) == 0) {
|
if (sem_init(&pSemaphore->posix.semaphore, 0, (unsigned int)initialValue) == 0) {
|
||||||
@@ -22751,6 +22753,7 @@ static OSStatus ma_on_output__coreaudio(void* pUserData, AudioUnitRenderActionFl
|
|||||||
(void)pActionFlags;
|
(void)pActionFlags;
|
||||||
(void)pTimeStamp;
|
(void)pTimeStamp;
|
||||||
(void)busNumber;
|
(void)busNumber;
|
||||||
|
(void)frameCount;
|
||||||
|
|
||||||
return noErr;
|
return noErr;
|
||||||
}
|
}
|
||||||
@@ -23019,7 +23022,10 @@ static OSStatus ma_default_device_changed__coreaudio(AudioObjectID objectID, UIn
|
|||||||
}
|
}
|
||||||
ma_mutex_unlock(&g_DeviceTrackingMutex_CoreAudio);
|
ma_mutex_unlock(&g_DeviceTrackingMutex_CoreAudio);
|
||||||
|
|
||||||
(void)objectID; /* Unused. */
|
/* Unused parameters. */
|
||||||
|
(void)objectID;
|
||||||
|
(void)pUserData;
|
||||||
|
|
||||||
return noErr;
|
return noErr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user