Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
647f3764
Commit
647f3764
authored
Feb 03, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exclude some unnecessary functions when possible.
parent
ddb901e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
miniaudio.h
miniaudio.h
+8
-0
No files found.
miniaudio.h
View file @
647f3764
...
@@ -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)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment