| 1004 | return false; |
| 1005 | } |
| 1006 | bool Window::toggleSoundPlayback() |
| 1007 | { |
| 1008 | bool shouldPause = true; |
| 1009 | for (const auto &sound : Globals::gAudio.getPlayingSounds()) |
| 1010 | { |
| 1011 | if (sound.paused) |
| 1012 | { |
| 1013 | shouldPause = false; |
| 1014 | break; |
| 1015 | } |
| 1016 | } |
| 1017 | |
| 1018 | auto soundsCopy = groupedSounds.copy(); |
| 1019 | for (const auto &[local, remote] : soundsCopy) |
| 1020 | { |
| 1021 | if (shouldPause) |
| 1022 | { |
| 1023 | pauseSound(local); |
| 1024 | } |
| 1025 | else |
| 1026 | { |
| 1027 | resumeSound(local); |
| 1028 | } |
| 1029 | } |
| 1030 | |
| 1031 | return shouldPause; |
| 1032 | } |
| 1033 | #if defined(__linux__) |
| 1034 | IconRecordingApp::IconRecordingApp(const RecordingApp &base) |
| 1035 | { |
nothing calls this directly
no test coverage detected