From 0fab6785e63ce1baa2447a4d6eb08b0db1893112 Mon Sep 17 00:00:00 2001 From: Iamgoofball Date: Sun, 14 Oct 2018 17:38:54 -0700 Subject: fixes opus courtesy of longbyte1 --- courtroom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'courtroom.cpp') diff --git a/courtroom.cpp b/courtroom.cpp index 352a3da5..43e977be 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -6,7 +6,7 @@ Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow() //initializing sound device BASS_Init(-1, 48000, BASS_DEVICE_LATENCY, 0, NULL); - BASS_PluginLoad("bassopus.dll", BASS_UNICODE); + BASS_PluginLoad(L"bassopus.dll", BASS_UNICODE); keepalive_timer = new QTimer(this); keepalive_timer->start(60000); -- cgit From d1347b2243c1595557d7b89d40eb88a68a94375b Mon Sep 17 00:00:00 2001 From: iamgoofball Date: Tue, 16 Oct 2018 01:22:07 -0700 Subject: Opus on SFX --- courtroom.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'courtroom.cpp') diff --git a/courtroom.cpp b/courtroom.cpp index 43e977be..1ccae30b 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -1377,7 +1377,7 @@ void Courtroom::play_sfx() if (sfx_name == "1") return; - sfx_player->play(sfx_name + ".wav"); + sfx_player->play(ao_app->get_sfx_suffix(sfx_name)); } void Courtroom::set_scene() @@ -1488,12 +1488,13 @@ void Courtroom::set_text_color() ui_vp_message->setStyleSheet("background-color: rgba(0, 0, 0, 0);" "color: yellow"); break; - default: - qDebug() << "W: undefined text color: " << m_chatmessage[TEXT_COLOR]; + case WHITE: ui_vp_message->setStyleSheet("background-color: rgba(0, 0, 0, 0);" "color: white"); - + break; + default: + qDebug() << "W: undefined text color: " << m_chatmessage[TEXT_COLOR]; } } -- cgit