diff --git a/rpcs3/rpcs3qt/gs_frame.cpp b/rpcs3/rpcs3qt/gs_frame.cpp index 63c6afe3f5..da4e392e47 100644 --- a/rpcs3/rpcs3qt/gs_frame.cpp +++ b/rpcs3/rpcs3qt/gs_frame.cpp @@ -22,7 +22,6 @@ #include #include #include -#include #include #include @@ -465,7 +464,7 @@ void gs_frame::toggle_recording() // Play a sound if (const std::string sound_path = fs::get_config_dir() + "sounds/snd_recording.wav"; fs::is_file(sound_path)) { - QSound::play(qstr(sound_path)); + Emu.GetCallbacks().play_sound(sound_path); } else { @@ -1006,7 +1005,7 @@ void gs_frame::take_screenshot(std::vector data, const u32 sshot_width, cons { if (const std::string sound_path = fs::get_config_dir() + "sounds/snd_screenshot.wav"; fs::is_file(sound_path)) { - QSound::play(qstr(sound_path)); + Emu.GetCallbacks().play_sound(sound_path); } else {