This seems like the last one. Untested.

This commit is contained in:
Penguin-Guru 2021-11-24 18:13:06 -08:00
parent cf50bcb71b
commit 78981307e6

View file

@ -386,10 +386,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);
}