Commit 647f3764 authored by David Reid's avatar David Reid

Exclude some unnecessary functions when possible.

parent ddb901e3
...@@ -6310,6 +6310,13 @@ static void ma_device__send_frames_to_client(ma_device* pDevice, ma_uint32 frame ...@@ -6310,6 +6310,13 @@ static void ma_device__send_frames_to_client(ma_device* pDevice, ma_uint32 frame
} }
} }
/* We only want to expose ma_device__handle_duplex_callback_capture() and ma_device__handle_duplex_callback_playback() if we have an asynchronous backend enabled. */
#if defined(MA_HAS_JACK) || \
defined(MA_HAS_COREAUDIO) || \
defined(MA_HAS_AAUDIO) || \
defined(MA_HAS_OPENSL) || \
defined(MA_HAS_WEBAUDIO)
static ma_result ma_device__handle_duplex_callback_capture(ma_device* pDevice, ma_uint32 frameCountInDeviceFormat, const void* pFramesInDeviceFormat, ma_pcm_rb* pRB) static ma_result ma_device__handle_duplex_callback_capture(ma_device* pDevice, ma_uint32 frameCountInDeviceFormat, const void* pFramesInDeviceFormat, ma_pcm_rb* pRB)
{ {
ma_result result; ma_result result;
...@@ -6444,6 +6451,7 @@ static ma_result ma_device__handle_duplex_callback_playback(ma_device* pDevice, ...@@ -6444,6 +6451,7 @@ static ma_result ma_device__handle_duplex_callback_playback(ma_device* pDevice,
return MA_SUCCESS; return MA_SUCCESS;
} }
#endif /* Asynchronous backends. */
/* A helper for changing the state of the device. */ /* A helper for changing the state of the device. */
static MA_INLINE void ma_device__set_state(ma_device* pDevice, ma_uint32 newState) static MA_INLINE void ma_device__set_state(ma_device* pDevice, ma_uint32 newState)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment