Skip to content

Commit 57e1cd4

Browse files
committed
Replaced OS beep with current theme's callword sound
NOTE: If the theme points to the wrong sound, it'll still fail to play.
1 parent 62d1e93 commit 57e1cd4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

data/ui/options_dialog.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@
654654
<item row="3" column="0" colspan="2">
655655
<widget class="QLabel" name="callwords_sfx_explain">
656656
<property name="text">
657-
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;When a callword is triggered, the sound provided will be played instead of a general alert beep.&lt;/p&gt;&lt;p&gt;If the sound's filepath is invalid, a general alert beep will be played instead.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
657+
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;When a callword is triggered, the sound provided will be played instead of a general alert beep.&lt;/p&gt;&lt;p&gt;If the sound's filepath is invalid, the current theme's callword sound will be played instead.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
658658
</property>
659659
<property name="wordWrap">
660660
<bool>true</bool>

src/courtroom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3428,7 +3428,7 @@ void Courtroom::handle_callwords()
34283428
}
34293429
else
34303430
{
3431-
qApp->beep();
3431+
modcall_player->findAndPlaySfx(ao_app->get_court_sfx("word_call"));
34323432
}
34333433

34343434
// Make the window flash

0 commit comments

Comments
 (0)