SPU2: Move SndOut declarations to header

In some cases clang will optimize out the global variable definition
otherwise.
This commit is contained in:
Stenzek 2023-01-01 16:19:10 +10:00 committed by refractionpcsx2
parent fe8ebe3f79
commit 0c5b43bcdd
2 changed files with 7 additions and 7 deletions

View File

@ -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,

View File

@ -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;