aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2021-11-23 15:59:46 +1300
committerMatthew Gregan <[email protected]>2021-11-23 15:59:55 +1300
commit1995336d87e7e5cb666ce1a126df7add5898ddee (patch)
tree1c3a4828aea7423ab52a7ac303b9716f8d701b89 /src
parentdf1f3e9d8760db829303583ad6a63596cb130bec (diff)
downloadcubeb-1995336d87e7e5cb666ce1a126df7add5898ddee.tar.gz
cubeb-1995336d87e7e5cb666ce1a126df7add5898ddee.zip
aaudio: Fix build after a4e701ff602eb38d12f24e6ea2424336b470e225.
Fixes #676.
Diffstat (limited to 'src')
-rw-r--r--src/cubeb_aaudio.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cubeb_aaudio.cpp b/src/cubeb_aaudio.cpp
index 76e2544..1143fa7 100644
--- a/src/cubeb_aaudio.cpp
+++ b/src/cubeb_aaudio.cpp
@@ -62,7 +62,7 @@
X(AAudioStreamBuilder_setUsage)
// not needed or added later on
-// X(AAudioStreamBuilder_setFramesPerDataCallback) \
+ // X(AAudioStreamBuilder_setFramesPerDataCallback) \
// X(AAudioStreamBuilder_setDeviceId) \
// X(AAudioStreamBuilder_setSamplesPerFrame) \
// X(AAudioStream_getSamplesPerFrame) \
@@ -78,6 +78,7 @@
// X(AAudioStream_getContentType) \
// X(AAudioStream_getInputPreset) \
// X(AAudioStream_getSessionId) \
+// END: not needed or added later on
#define MAKE_TYPEDEF(x) static decltype(x) * cubeb_##x;
LIBAAUDIO_API_VISIT(MAKE_TYPEDEF)
@@ -1475,7 +1476,7 @@ aaudio_init(cubeb ** context, char const * /* context_name */)
#define LOAD(x) \
{ \
- WRAP(x) = (decltype(WRAP(x)))(dlsym(libaaudio, #x)); \
+ cubeb_##x = (decltype(x) *)(dlsym(libaaudio, #x)); \
if (!WRAP(x)) { \
LOG("AAudio: Failed to load %s", #x); \
dlclose(libaaudio); \