mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 03:15:34 +08:00
[Audio] Get/set audio device volume (this is the device's value, NOT the logical AFV value)
This commit is contained in:
committed by
Mat Sutcliffe
parent
fc9bb1277d
commit
091fa5f338
@@ -64,8 +64,8 @@ namespace BlackCore
|
||||
//! Opus data arguments
|
||||
struct OpusDataAvailableArgs
|
||||
{
|
||||
uint sequenceCounter = 0; //!< sequence counter
|
||||
QByteArray audio; //!< audio data
|
||||
uint sequenceCounter = 0; //!< sequence counter
|
||||
QByteArray audio; //!< audio data
|
||||
};
|
||||
|
||||
//! Input volume stream arguments
|
||||
@@ -101,11 +101,16 @@ namespace BlackCore
|
||||
void setOpusBytesEncoded(int opusBytesEncoded) { m_opusBytesEncoded = opusBytesEncoded; }
|
||||
//! @}
|
||||
|
||||
//! Volume @{
|
||||
//! Volume 0..1 @{
|
||||
double volume() const { return m_volume; }
|
||||
bool setVolume(double volume);
|
||||
//! @}
|
||||
|
||||
//! The device's volume 0..1 @{
|
||||
double getDeviceInputVolume() const;
|
||||
bool setDeviceInputVolume(double volume);
|
||||
//! @}
|
||||
|
||||
//! Started?
|
||||
bool started() const { return m_started; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user