mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 19:35:33 +08:00
Fix sample afvclient
This commit is contained in:
@@ -96,8 +96,8 @@ public:
|
|||||||
//! \copydoc BlackCore::Afv::Clients::CAfvClient::setInputVolumeDb
|
//! \copydoc BlackCore::Afv::Clients::CAfvClient::setInputVolumeDb
|
||||||
Q_INVOKABLE void setInputVolumeDb(double valueDb) { m_afvClient->setInputVolumeDb(valueDb); }
|
Q_INVOKABLE void setInputVolumeDb(double valueDb) { m_afvClient->setInputVolumeDb(valueDb); }
|
||||||
|
|
||||||
//! \copydoc BlackCore::Afv::Clients::CAfvClient::setOutputVolumeDb
|
//! \copydoc BlackCore::Afv::Clients::CAfvClient::setNormalizedMasterOutputVolume
|
||||||
Q_INVOKABLE void setOutputVolumeDb(double valueDb) { m_afvClient->setOutputVolumeDb(valueDb); }
|
Q_INVOKABLE void setNormalizedMasterOutputVolume(double valueDb) { m_afvClient->setNormalizedMasterOutputVolume(valueDb); }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
//! Receiving callsigns have been changed
|
//! Receiving callsigns have been changed
|
||||||
|
|||||||
@@ -282,12 +282,12 @@ ApplicationWindow {
|
|||||||
|
|
||||||
Slider {
|
Slider {
|
||||||
id: slOutputVolume
|
id: slOutputVolume
|
||||||
from: -18
|
from: 0
|
||||||
to: 18
|
to: 100
|
||||||
value: 0
|
value: 50
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
wheelEnabled: true
|
wheelEnabled: true
|
||||||
onMoved: voiceClient.setOutputVolumeDb(value)
|
onMoved: voiceClient.setNormalizedMasterOutputVolume(value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user