From 0788b162f1bb3dbfef66fbe9d341bc3a857a90e1 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Wed, 2 Jan 2019 22:28:16 +0100 Subject: fixed a crash condition where blip rate is less than 1 --- src/text_file_functions.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp index fcb8df2..f35690a 100644 --- a/src/text_file_functions.cpp +++ b/src/text_file_functions.cpp @@ -9,6 +9,10 @@ QString AOApplication::read_theme() int AOApplication::read_blip_rate() { int result = configini->value("blip_rate", 1).toInt(); + + if (result < 1) + return 1; + return result; } -- cgit From 3965a847c211e3b1930a53dfe95f1136da781e88 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Sun, 6 Jan 2019 12:14:00 +0100 Subject: fixed opus plugin load for macOS --- src/courtroom.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/courtroom.cpp b/src/courtroom.cpp index f4b484b..598747c 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -3511,7 +3511,10 @@ void Courtroom::load_bass_opus_plugin() #elif defined __APPLE__ void Courtroom::load_bass_opus_plugin() { - BASS_PluginLoad("libbassopus.dylib", 0); + QString libpath = ao_app->get_base_path() + "../../Frameworks/libbassopus.dylib"; + QByteArray ba = libpath.toLocal8Bit(); + + BASS_PluginLoad(ba.data(), 0); } #else #error This operating system is unsupported for bass plugins. -- cgit