This seems fine?

This commit is contained in:
Penguin-Guru 2021-11-24 08:51:43 -08:00
parent bfbbb2f528
commit 65dcd58371
2 changed files with 2 additions and 6 deletions

View file

@ -25,10 +25,8 @@ RowLayout {
sample = null;
}
function playSound() {
// FIXME: MyAvatar is not properly exposed to QML; MyAvatar.qmlPosition is a stopgap
// FIXME: AudioScriptingInterface.playSystemSound should not require position
if (sample === null && !isPlaying) {
sample = AudioScriptingInterface.playSystemSound(sound, MyAvatar.qmlPosition);
sample = AudioScriptingInterface.playSystemSound(sound);
isPlaying = true;
sample.finished.connect(reset);
}

View file

@ -384,10 +384,8 @@ Flickable {
sample = null;
}
function playSound() {
// FIXME: MyAvatar is not properly exposed to QML; MyAvatar.qmlPosition is a stopgap
// FIXME: AudioScriptingInterface.playSystemSound should not require position
if (sample === null && !isPlaying) {
sample = AudioScriptingInterface.playSystemSound(sound, MyAvatar.qmlPosition);
sample = AudioScriptingInterface.playSystemSound(sound);
isPlaying = true;
sample.finished.connect(reset);
}