mirror of
https://github.com/overte-org/overte.git
synced 2025-07-22 18:13:35 +02:00
Merge pull request #1473 from Penguin-Guru/AudioOutputTest
Remove second argument from some playSystemSound() calls in QML.
This commit is contained in:
commit
d4a832a0c1
4 changed files with 4 additions and 9 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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -386,10 +386,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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,6 +171,7 @@ class MyAvatar : public Avatar {
|
||||||
* registration point of the 3D model.
|
* registration point of the 3D model.
|
||||||
*
|
*
|
||||||
* @property {Vec3} qmlPosition - A synonym for <code>position</code> for use by QML.
|
* @property {Vec3} qmlPosition - A synonym for <code>position</code> for use by QML.
|
||||||
|
* <p class="important">Deprecated: This property is deprecated and will be removed.</p>
|
||||||
*
|
*
|
||||||
* @property {Vec3} feetPosition - The position of the avatar's feet.
|
* @property {Vec3} feetPosition - The position of the avatar's feet.
|
||||||
* @property {boolean} shouldRenderLocally=true - If <code>true</code> then your avatar is rendered for you in Interface,
|
* @property {boolean} shouldRenderLocally=true - If <code>true</code> then your avatar is rendered for you in Interface,
|
||||||
|
|
Loading…
Reference in a new issue