diff --git a/interface/resources/qml/hifi/audio/PlaySampleSound.qml b/interface/resources/qml/hifi/audio/PlaySampleSound.qml index f1351b8cbf..847f876140 100644 --- a/interface/resources/qml/hifi/audio/PlaySampleSound.qml +++ b/interface/resources/qml/hifi/audio/PlaySampleSound.qml @@ -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); } diff --git a/interface/resources/qml/hifi/simplifiedUI/settingsApp/audio/Audio.qml b/interface/resources/qml/hifi/simplifiedUI/settingsApp/audio/Audio.qml index 345c124725..ea2b1467b5 100644 --- a/interface/resources/qml/hifi/simplifiedUI/settingsApp/audio/Audio.qml +++ b/interface/resources/qml/hifi/simplifiedUI/settingsApp/audio/Audio.qml @@ -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); } diff --git a/interface/resources/qml/hifi/simplifiedUI/settingsApp/vr/VR.qml b/interface/resources/qml/hifi/simplifiedUI/settingsApp/vr/VR.qml index cc64f8bd9f..d713f3f6f9 100644 --- a/interface/resources/qml/hifi/simplifiedUI/settingsApp/vr/VR.qml +++ b/interface/resources/qml/hifi/simplifiedUI/settingsApp/vr/VR.qml @@ -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); } diff --git a/interface/src/avatar/MyAvatar.h b/interface/src/avatar/MyAvatar.h index 3fceae534f..8b5ffa233a 100644 --- a/interface/src/avatar/MyAvatar.h +++ b/interface/src/avatar/MyAvatar.h @@ -171,6 +171,7 @@ class MyAvatar : public Avatar { * registration point of the 3D model. * * @property {Vec3} qmlPosition - A synonym for position for use by QML. + *

Deprecated: This property is deprecated and will be removed.

* * @property {Vec3} feetPosition - The position of the avatar's feet. * @property {boolean} shouldRenderLocally=true - If true then your avatar is rendered for you in Interface,