aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-10-31 13:20:37 -0700
committerChris Robinson <[email protected]>2018-10-31 13:21:05 -0700
commit0e7986eaa826401b5ef80b033583eb9f24dbf813 (patch)
tree16e12ab2cfca1d50889cae272096770485765310 /Alc
parent9dba90fa207cc5323c3f687bbb34d4adc3a0e3f6 (diff)
Move some extern inline declarations to C
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 8bf2e1da..7d28b976 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1566,6 +1566,14 @@ void SetDefaultChannelOrder(ALCdevice *device)
extern inline ALint GetChannelIndex(const enum Channel names[MAX_OUTPUT_CHANNELS], enum Channel chan);
extern inline ALint GetChannelIdxByName(const RealMixParams *real, enum Channel chan);
+/* NOTE: These shouldn't really be here, but C++ (alBuffer.cpp) won't turn
+ * these extern inline declarations into callable functions.
+ */
+extern inline void LockBufferList(ALCdevice *device);
+extern inline void UnlockBufferList(ALCdevice *device);
+extern inline ALsizei FrameSizeFromUserFmt(enum UserFmtChannels chans, enum UserFmtType type);
+extern inline ALsizei FrameSizeFromFmt(enum FmtChannels chans, enum FmtType type);
+
/* ALCcontext_DeferUpdates
*