aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-02-21 18:00:23 +0100
committersD <stoned@derpymail.org>2020-02-21 18:00:23 +0100
commit2716416b62ce6ffec89d2a8b4b984b709cb5221a (patch)
tree3c0bcc922bbe28a384247a7b93975118c1a66fea /src
parent87e359487d7e7d75cb696736f2a5da21d9648898 (diff)
only load bass plugins when bass is included
Diffstat (limited to 'src')
-rw-r--r--src/courtroom.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 64c288c..6510ca7 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -3955,30 +3955,25 @@ Courtroom::~Courtroom()
delete blip_player;
}
-
+#ifdef BASSAUDIO
#if (defined (_WIN32) || defined (_WIN64))
void Courtroom::load_bass_opus_plugin()
{
- #ifdef BASSAUDIO
BASS_PluginLoad("bassopus.dll", 0);
- #endif
}
#elif (defined (LINUX) || defined (__linux__))
void Courtroom::load_bass_opus_plugin()
{
- #ifdef BASSAUDIO
BASS_PluginLoad("libbassopus.so", 0);
- #endif
}
#elif defined __APPLE__
void Courtroom::load_bass_opus_plugin()
{
QString libpath = ao_app->get_base_path() + "../../Frameworks/libbassopus.dylib";
QByteArray ba = libpath.toLocal8Bit();
- #ifdef BASSAUDIO
BASS_PluginLoad(ba.data(), 0);
- #endif
}
#else
#error This operating system is unsupported for bass plugins.
#endif
+#endif