made requested changes

This commit is contained in:
Dante Ruiz 2018-03-09 10:09:51 -08:00
parent c49d0557fc
commit 3a39fca268
5 changed files with 7 additions and 7 deletions

View file

@ -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) {

View file

@ -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; }

View file

@ -43,7 +43,7 @@ public slots:
virtual bool setIsStereoInput(bool stereo) = 0;
virtual bool isStereoEnabled() = 0;
virtual bool isStereoInput() = 0;
};
Q_DECLARE_METATYPE(AbstractAudioInterface*)

View file

@ -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;
}

View file

@ -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