mirror of https://github.com/PCSX2/pcsx2.git
SPU2: Move SndOut declarations to header
In some cases clang will optimize out the global variable definition otherwise.
This commit is contained in:
parent
fe8ebe3f79
commit
0c5b43bcdd
|
@ -85,13 +85,6 @@ public:
|
|||
static NullOutModule s_NullOut;
|
||||
static SndOutModule* NullOut = &s_NullOut;
|
||||
|
||||
#ifdef _WIN32
|
||||
extern SndOutModule* XAudio2Out;
|
||||
#endif
|
||||
#if defined(SPU2X_CUBEB)
|
||||
extern SndOutModule* CubebOut;
|
||||
#endif
|
||||
|
||||
static SndOutModule* mods[] =
|
||||
{
|
||||
NullOut,
|
||||
|
|
|
@ -488,6 +488,13 @@ public:
|
|||
virtual int GetEmptySampleCount() = 0;
|
||||
};
|
||||
|
||||
#ifdef _WIN32
|
||||
extern SndOutModule* XAudio2Out;
|
||||
#endif
|
||||
#if defined(SPU2X_CUBEB)
|
||||
extern SndOutModule* CubebOut;
|
||||
#endif
|
||||
|
||||
// =====================================================================================================
|
||||
|
||||
extern bool WavRecordEnabled;
|
||||
|
|
Loading…
Reference in New Issue