Move some extern inline declarations to C

This commit is contained in:
Chris Robinson
2018-10-31 13:20:37 -07:00
parent 9dba90fa20
commit 0e7986eaa8
2 changed files with 8 additions and 5 deletions
+8
View File
@@ -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
*
-5
View File
@@ -39,11 +39,6 @@
#include "sample_cvt.h"
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);
static ALbuffer *AllocBuffer(ALCcontext *context);
static void FreeBuffer(ALCdevice *device, ALbuffer *buffer);
static const ALchar *NameFromUserFmtType(enum UserFmtType type);