aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2018-01-18 20:06:07 -0600
committeroldmud0 <oldmud0@users.noreply.github.com>2018-01-18 20:06:07 -0600
commit28decf8dbf2ae1b9fef71821aa0384bab72d404e (patch)
tree5be6b231c844b6ce270df5c69bb668320801b948
parentb214ca87c7dd466a4d86beb4a38561f43eca806a (diff)
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.
-rw-r--r--courtroom.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/courtroom.cpp b/courtroom.cpp
index 14d3cbb3..97d1f714 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);