make beep() use a game sound on Linux

This commit is contained in:
2024-12-01 18:50:13 -06:00
parent e187f07307
commit 42e51a3b36

View File

@@ -16,6 +16,8 @@
extern sf::RenderWindow mainPtr;
extern void showError(std::string str1, std::string str2, cDialog* parent = nullptr);
extern void play_sound(snd_num_t which, sf::Time delay = sf::Time());
// TODO: I'm sure there's a better way to do this (maybe one that's keyboard layout agnostic)
// The proper way would involve use of the TextEntered event
char keyToChar(sf::Keyboard::Key key, bool isShift) {
@@ -225,6 +227,7 @@ std::unique_ptr<sf::Image> get_clipboard_img() {
}
void beep() {
play_sound(1);
}
void launchURL(std::string url) {