From 3c80311743225bd2fd580cd8f377daf19c3b80bf Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 27 Apr 2021 17:25:46 +1000 Subject: [PATCH] Fix the C++ build. --- miniaudio.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index d1fb63a0..a15c8925 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -1,6 +1,6 @@ /* Audio playback and capture library. Choice of public domain or MIT-0. See license statements at the end of this file. -miniaudio - v0.10.34 - 2021-04-26 +miniaudio - v0.10.35 - TBD David Reid - mackron@gmail.com @@ -1510,7 +1510,7 @@ extern "C" { #define MA_VERSION_MAJOR 0 #define MA_VERSION_MINOR 10 -#define MA_VERSION_REVISION 34 +#define MA_VERSION_REVISION 35 #define MA_VERSION_STRING MA_XSTRINGIFY(MA_VERSION_MAJOR) "." MA_XSTRINGIFY(MA_VERSION_MINOR) "." MA_XSTRINGIFY(MA_VERSION_REVISION) #if defined(_MSC_VER) && !defined(__clang__) @@ -20789,12 +20789,12 @@ static ma_result ma_device_wait__alsa(ma_device* pDevice, ma_snd_pcm_t* pPCM, st static ma_result ma_device_wait_read__alsa(ma_device* pDevice) { - return ma_device_wait__alsa(pDevice, pDevice->alsa.pPCMCapture, (struct pollfd*)pDevice->alsa.pPollDescriptorsCapture, pDevice->alsa.pollDescriptorCountCapture + 1, POLLIN); /* +1 to account for the wakeup descriptor. */ + return ma_device_wait__alsa(pDevice, (ma_snd_pcm_t*)pDevice->alsa.pPCMCapture, (struct pollfd*)pDevice->alsa.pPollDescriptorsCapture, pDevice->alsa.pollDescriptorCountCapture + 1, POLLIN); /* +1 to account for the wakeup descriptor. */ } static ma_result ma_device_wait_write__alsa(ma_device* pDevice) { - return ma_device_wait__alsa(pDevice, pDevice->alsa.pPCMPlayback, (struct pollfd*)pDevice->alsa.pPollDescriptorsPlayback, pDevice->alsa.pollDescriptorCountPlayback + 1, POLLOUT); /* +1 to account for the wakeup descriptor. */ + return ma_device_wait__alsa(pDevice, (ma_snd_pcm_t*)pDevice->alsa.pPCMPlayback, (struct pollfd*)pDevice->alsa.pPollDescriptorsPlayback, pDevice->alsa.pollDescriptorCountPlayback + 1, POLLOUT); /* +1 to account for the wakeup descriptor. */ } static ma_result ma_device_read__alsa(ma_device* pDevice, void* pFramesOut, ma_uint32 frameCount, ma_uint32* pFramesRead) @@ -64800,6 +64800,9 @@ The following miscellaneous changes have also been made. /* REVISION HISTORY ================ +v0.10.35 - TBD + - Fix the C++ build. + v0.10.34 - 2021-04-26 - WASAPI: Fix a bug where a result code is not getting checked at initialization time. - WASAPI: Bug fixes for loopback mode.