added qtmultimedia version for sound

This commit is contained in:
Geoffray Levasseur committed 2026-11-04 15:41:15 +01:00
1 parent 70ff70652c
commit 808b403bba
8 files changed
+172 -7

No files matched your search

+2 -3
View File
@@ -26,6 +26,7 @@
// The fact that you are presently reading this means that you have had
// knowledge of the CeCILL license and that you accept its terms.
#include "Sound.h"
#include "Messg.h"
#include "ui_Messg.h"
@@ -80,9 +81,7 @@ void MessgDlg::paintEvent(QPaintEvent *event)
BaseMessgDlg::paintEvent(event);
if (!openSound.isEmpty()) {
QTimer::singleShot(0, this, [this] {
// TODO: needs Sound.pas's Play()/Sounds[] item lookup (not
// ported yet, superseded by media/'s UosMedia for raw playback
// but no symbolic-sound-item table exists yet).
Sound::play(openSound);
openSound.clear();
});
}