mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
refs #335, volume and mute functions
* refs #339, in the same step fixed delete
This commit is contained in:
committed by
Roland Winklmeier
parent
efb89dd7be
commit
e1647cd8fd
@@ -74,6 +74,16 @@ namespace BlackCore
|
||||
//! \details the flag indicates, whether a room got connected or disconnected
|
||||
void changedVoiceRooms(const BlackMisc::Audio::CVoiceRoomList &voiceRooms, bool connected);
|
||||
|
||||
//! Volumes changed (COM1, COM2)
|
||||
//! \sa setVolumes
|
||||
// KB: Is see some potential changes here, which we should do when we have the new 2.0 vatlib
|
||||
// 1. volume integrated in voice room?
|
||||
// 2. Value object for volumes CVolume / CVolumeList?
|
||||
void changedAudioVolumes(QList<qint32> volumes);
|
||||
|
||||
//! Mute changed
|
||||
void changedMute(bool muted);
|
||||
|
||||
public slots:
|
||||
//! Get voice rooms for COM1, COM2:
|
||||
virtual BlackMisc::Audio::CVoiceRoomList getComVoiceRoomsWithAudioStatus() const = 0;
|
||||
@@ -135,6 +145,12 @@ namespace BlackCore
|
||||
*/
|
||||
virtual void setVolumes(const BlackMisc::Aviation::CComSystem &com1, const BlackMisc::Aviation::CComSystem &com2) = 0;
|
||||
|
||||
//! Set the volumes (0..100)
|
||||
virtual void setVolumes(qint32 volumeCom1, qint32 volumeCom2) = 0;
|
||||
|
||||
//! Set mute state
|
||||
virtual void setMute(bool mute) = 0;
|
||||
|
||||
//! Is muted?
|
||||
virtual bool isMuted() const = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user