mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
made requested changes
This commit is contained in:
parent
c49d0557fc
commit
3a39fca268
5 changed files with 7 additions and 7 deletions
|
@ -128,8 +128,8 @@ Rectangle {
|
|||
AudioControls.CheckBox {
|
||||
id: stereoMic
|
||||
spacing: muteMic.spacing;
|
||||
text: qsTr("Use stereo for stereo devices");
|
||||
checked: AudioScriptingInterface.isStereoEnabled();
|
||||
text: qsTr("Use stereo for input device");
|
||||
checked: AudioScriptingInterface.isStereoInput();
|
||||
onClicked: {
|
||||
var success = AudioScriptingInterface.setStereoInput(checked);
|
||||
if (!success) {
|
||||
|
|
|
@ -193,7 +193,7 @@ public slots:
|
|||
bool isMuted() { return _muted; }
|
||||
|
||||
virtual bool setIsStereoInput(bool stereo) override;
|
||||
virtual bool isStereoEnabled() override { return _isStereoInput; }
|
||||
virtual bool isStereoInput() override { return _isStereoInput; }
|
||||
|
||||
void setNoiseReduction(bool isNoiseGateEnabled);
|
||||
bool isNoiseReductionEnabled() const { return _isNoiseGateEnabled; }
|
||||
|
|
|
@ -43,7 +43,7 @@ public slots:
|
|||
|
||||
virtual bool setIsStereoInput(bool stereo) = 0;
|
||||
|
||||
virtual bool isStereoEnabled() = 0;
|
||||
virtual bool isStereoInput() = 0;
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(AbstractAudioInterface*)
|
||||
|
|
|
@ -68,10 +68,10 @@ bool AudioScriptingInterface::setStereoInput(bool stereo) {
|
|||
return stereoInputChanged;
|
||||
}
|
||||
|
||||
bool AudioScriptingInterface::isStereoEnabled() {
|
||||
bool AudioScriptingInterface::isStereoInput() {
|
||||
bool stereoEnabled = false;
|
||||
if (_localAudioInterface) {
|
||||
stereoEnabled = _localAudioInterface->isStereoEnabled();
|
||||
stereoEnabled = _localAudioInterface->isStereoInput();
|
||||
}
|
||||
return stereoEnabled;
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ protected:
|
|||
Q_INVOKABLE ScriptAudioInjector* playSystemSound(SharedSoundPointer sound, const QVector3D& position);
|
||||
|
||||
Q_INVOKABLE bool setStereoInput(bool stereo);
|
||||
Q_INVOKABLE bool isStereoEnabled();
|
||||
Q_INVOKABLE bool isStereoInput();
|
||||
|
||||
signals:
|
||||
void mutedByMixer(); /// the client has been muted by the mixer
|
||||
|
|
Loading…
Reference in a new issue