mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 03:28:48 +02:00
This seems fine?
This commit is contained in:
parent
bfbbb2f528
commit
65dcd58371
2 changed files with 2 additions and 6 deletions
|
@ -25,10 +25,8 @@ RowLayout {
|
||||||
sample = null;
|
sample = null;
|
||||||
}
|
}
|
||||||
function playSound() {
|
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) {
|
if (sample === null && !isPlaying) {
|
||||||
sample = AudioScriptingInterface.playSystemSound(sound, MyAvatar.qmlPosition);
|
sample = AudioScriptingInterface.playSystemSound(sound);
|
||||||
isPlaying = true;
|
isPlaying = true;
|
||||||
sample.finished.connect(reset);
|
sample.finished.connect(reset);
|
||||||
}
|
}
|
||||||
|
|
|
@ -384,10 +384,8 @@ Flickable {
|
||||||
sample = null;
|
sample = null;
|
||||||
}
|
}
|
||||||
function playSound() {
|
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) {
|
if (sample === null && !isPlaying) {
|
||||||
sample = AudioScriptingInterface.playSystemSound(sound, MyAvatar.qmlPosition);
|
sample = AudioScriptingInterface.playSystemSound(sound);
|
||||||
isPlaying = true;
|
isPlaying = true;
|
||||||
sample.finished.connect(reset);
|
sample.finished.connect(reset);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue