Add BASSOPUS support

Nothing will happen if you do not have the DLL.
Sample rate was changed to 48 kHz as Opus only supports 48 kHz audio,
and pretty much all sound cards support 48 kHz.
This commit is contained in:
oldmud0 2018-01-18 20:06:07 -06:00
parent b214ca87c7
commit 28decf8dbf

View File

@ -18,7 +18,8 @@ Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow()
ao_app = p_ao_app;
//initializing sound device
BASS_Init(-1, 44100, BASS_DEVICE_LATENCY, 0, NULL);
BASS_Init(-1, 48000, BASS_DEVICE_LATENCY, 0, NULL);
BASS_PluginLoad("bassopus.dll", BASS_UNICODE);
keepalive_timer = new QTimer(this);
keepalive_timer->start(60000);