mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
Force runtime linking on AAudio for the moment.
Change of plans from the previous commit.
This commit is contained in:
+9
-8
@@ -10534,13 +10534,15 @@ certain unused functions and variables can be excluded from the build to avoid w
|
|||||||
#endif
|
#endif
|
||||||
#ifdef MA_ENABLE_AAUDIO
|
#ifdef MA_ENABLE_AAUDIO
|
||||||
#define MA_HAS_AAUDIO
|
#define MA_HAS_AAUDIO
|
||||||
#ifdef MA_NO_RUNTIME_LINKING
|
#if 0 /* Forcing runtime linking of AAudio for now. */
|
||||||
#ifdef __has_include
|
#ifdef MA_NO_RUNTIME_LINKING
|
||||||
#if !__has_include(<AAudio/AAudio.h>)
|
#ifdef __has_include
|
||||||
#undef MA_HAS_AAUDIO
|
#if !__has_include(<AAudio/AAudio.h>)
|
||||||
|
#undef MA_HAS_AAUDIO
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif /* 0 */
|
||||||
#endif
|
#endif
|
||||||
#ifdef MA_ENABLE_OPENSL
|
#ifdef MA_ENABLE_OPENSL
|
||||||
#define MA_HAS_OPENSL
|
#define MA_HAS_OPENSL
|
||||||
@@ -30194,14 +30196,14 @@ static ma_result ma_context_uninit__aaudio(ma_context* pContext)
|
|||||||
|
|
||||||
static ma_result ma_context_init__aaudio(const ma_context_config* pConfig, ma_context* pContext)
|
static ma_result ma_context_init__aaudio(const ma_context_config* pConfig, ma_context* pContext)
|
||||||
{
|
{
|
||||||
#if !defined(MA_NO_RUNTIME_LINKING)
|
#if 1 /*!defined(MA_NO_RUNTIME_LINKING)*/
|
||||||
size_t i;
|
size_t i;
|
||||||
const char* libNames[] = {
|
const char* libNames[] = {
|
||||||
"libaaudio.so"
|
"libaaudio.so"
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MA_NO_RUNTIME_LINKING)
|
#if 1 /*!defined(MA_NO_RUNTIME_LINKING)*/
|
||||||
for (i = 0; i < ma_countof(libNames); ++i) {
|
for (i = 0; i < ma_countof(libNames); ++i) {
|
||||||
pContext->aaudio.hAAudio = ma_dlopen(pContext, libNames[i]);
|
pContext->aaudio.hAAudio = ma_dlopen(pContext, libNames[i]);
|
||||||
if (pContext->aaudio.hAAudio != NULL) {
|
if (pContext->aaudio.hAAudio != NULL) {
|
||||||
@@ -64717,7 +64719,6 @@ REVISION HISTORY
|
|||||||
v0.10.28 - TBD
|
v0.10.28 - TBD
|
||||||
- Fix a crash when initializing a POSIX thread.
|
- Fix a crash when initializing a POSIX thread.
|
||||||
- OpenSL|ES: Respect the MA_NO_RUNTIME_LINKING option.
|
- OpenSL|ES: Respect the MA_NO_RUNTIME_LINKING option.
|
||||||
- AAudio: Respect the MA_NO_RUNTIME_LINKING option.
|
|
||||||
|
|
||||||
v0.10.27 - 2020-12-04
|
v0.10.27 - 2020-12-04
|
||||||
- Add support for dynamically configuring some properties of `ma_noise` objects post-initialization.
|
- Add support for dynamically configuring some properties of `ma_noise` objects post-initialization.
|
||||||
|
|||||||
Reference in New Issue
Block a user