Skip to content

Commit

Permalink
Fix missing include and some definitions for dynamic OpenSL
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Dec 26, 2024
1 parent 8767fdd commit e359dbf
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions alc/backends/opensl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include "core/device.h"
#include "core/helpers.h"
#include "core/logging.h"
#include "dynload.h"
#include "opthelpers.h"
#include "ringbuffer.h"

Expand Down Expand Up @@ -69,12 +70,12 @@ SLES_SYMBOLS(MAKE_SYMBOL)
#undef MAKE_SYMBOL

#ifndef IN_IDE_PARSER
#define slCreateEngine pslCreateEngine
#define SL_IID_ANDROIDCONFIGURATION pSL_IID_ANDROIDCONFIGURATION
#define SL_IID_ANDROIDSIMPLEBUFFERQUEUE pSL_IID_ANDROIDSIMPLEBUFFERQUEUE
#define SL_IID_ENGINE pSL_IID_ENGINE
#define SL_IID_PLAY pSL_IID_PLAY
#define SL_IID_RECORD pSL_IID_RECORD
#define slCreateEngine (*pslCreateEngine)
#define SL_IID_ANDROIDCONFIGURATION (*pSL_IID_ANDROIDCONFIGURATION)
#define SL_IID_ANDROIDSIMPLEBUFFERQUEUE (*pSL_IID_ANDROIDSIMPLEBUFFERQUEUE)
#define SL_IID_ENGINE (*pSL_IID_ENGINE)
#define SL_IID_PLAY (*pSL_IID_PLAY)
#define SL_IID_RECORD (*pSL_IID_RECORD)
#endif
#endif

Expand Down

0 comments on commit e359dbf

Please sign in to comment.