3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-27 14:15:28 +02:00

Revert "setStereoInput always returns true to not break old scripts"

This reverts commit 2bf7db6952.
This commit is contained in:
Clement 2018-07-11 11:51:06 -07:00
parent 01610a1520
commit e5206a94a8
2 changed files with 2 additions and 4 deletions

View file

@ -75,11 +75,10 @@ ScriptAudioInjector* AudioScriptingInterface::playSound(SharedSoundPointer sound
}
}
bool AudioScriptingInterface::setStereoInput(bool stereo) {
void AudioScriptingInterface::setStereoInput(bool stereo) {
if (_localAudioInterface) {
QMetaObject::invokeMethod(_localAudioInterface, "setIsStereoInput", Q_ARG(bool, stereo));
}
return true;
}
bool AudioScriptingInterface::isStereoInput() {

View file

@ -54,9 +54,8 @@ protected:
/**jsdoc
* @function Audio.setStereoInput
* @param {boolean} stereo
* @returns {boolean}
*/
Q_INVOKABLE bool setStereoInput(bool stereo);
Q_INVOKABLE void setStereoInput(bool stereo);
/**jsdoc
* @function Audio.isStereoInput