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
a549754b
Commit
a549754b
authored
Aug 11, 2022
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SDK version detection for the Android build and AAudio.
parent
14817aeb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
miniaudio.h
miniaudio.h
+3
-7
No files found.
miniaudio.h
View file @
a549754b
...
@@ -6152,13 +6152,9 @@ This section contains the APIs for device playback and capture. Here is where yo
...
@@ -6152,13 +6152,9 @@ This section contains the APIs for device playback and capture. Here is where yo
#define MA_SUPPORT_JACK
#define MA_SUPPORT_JACK
#endif
#endif
#if defined(MA_ANDROID)
#if defined(MA_ANDROID)
#if __ANDROID_API__ >= 26
#define MA_SUPPORT_AAUDIO
#define MA_SUPPORT_AAUDIO
#endif
#if __ANDROID_API__ >= 9
#define MA_SUPPORT_OPENSL
#define MA_SUPPORT_OPENSL
#endif
#endif
#endif
#if defined(__OpenBSD__) /* <-- Change this to "#if defined(MA_BSD)" to enable sndio on all BSD flavors. */
#if defined(__OpenBSD__) /* <-- Change this to "#if defined(MA_BSD)" to enable sndio on all BSD flavors. */
#define MA_SUPPORT_SNDIO /* sndio is only supported on OpenBSD for now. May be expanded later if there's demand. */
#define MA_SUPPORT_SNDIO /* sndio is only supported on OpenBSD for now. May be expanded later if there's demand. */
#endif
#endif
...
@@ -17270,7 +17266,7 @@ MA_API ma_bool32 ma_is_backend_enabled(ma_backend backend)
...
@@ -17270,7 +17266,7 @@ MA_API ma_bool32 ma_is_backend_enabled(ma_backend backend)
{
{
char sdkVersion[PROP_VALUE_MAX + 1] = {0, };
char sdkVersion[PROP_VALUE_MAX + 1] = {0, };
if (__system_property_get("ro.build.version.sdk", sdkVersion)) {
if (__system_property_get("ro.build.version.sdk", sdkVersion)) {
if (atoi(sdkVersion) >= 2
7
) {
if (atoi(sdkVersion) >= 2
6
) {
return MA_TRUE;
return MA_TRUE;
} else {
} else {
return MA_FALSE;
return MA_FALSE;
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