From 28decf8dbf2ae1b9fef71821aa0384bab72d404e Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Thu, 18 Jan 2018 20:06:07 -0600 Subject: [PATCH] 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. --- courtroom.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/courtroom.cpp b/courtroom.cpp index 14d3cbb..97d1f71 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -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);