mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Refactoring and clean up of voice implementation
refs #36 - Cleanup of library and sample code - Completed now all signals in voice sample - Fixed minor bugs with the user list - TODO: Remove the VATSIM id from the user string refs #81
This commit is contained in:
committed by
Mathew Sutcliffe
parent
0bae898db8
commit
db4a3c5de4
@@ -34,8 +34,10 @@ namespace BlackMisc
|
||||
|
||||
/*!
|
||||
* Default constructor.
|
||||
* If m_deviceIndex is -1, default should be used. However on Windows this doesnt work. Needs
|
||||
* to be checked in Vatlib.
|
||||
*/
|
||||
CAudioDevice() : m_deviceIndex(0), m_deviceName("") {}
|
||||
CAudioDevice() : m_deviceIndex(invalidDevice()), m_deviceName("") {}
|
||||
|
||||
|
||||
/*!
|
||||
@@ -65,10 +67,10 @@ namespace BlackMisc
|
||||
const QString &name() const { return m_deviceName; }
|
||||
|
||||
/*!
|
||||
* \brief Valid voice room object?
|
||||
* \brief Valid audio device object?
|
||||
* \return
|
||||
*/
|
||||
bool isValid() const { return m_deviceIndex >= 0 && !m_deviceName.isEmpty(); }
|
||||
bool isValid() const { return m_deviceIndex >= -1 && !m_deviceName.isEmpty(); }
|
||||
|
||||
/*!
|
||||
* \brief Equal operator ==
|
||||
@@ -94,6 +96,10 @@ namespace BlackMisc
|
||||
*/
|
||||
static void registerMetadata();
|
||||
|
||||
static int16_t defaultDevice() {return -1;}
|
||||
|
||||
static int16_t invalidDevice() {return -2;}
|
||||
|
||||
protected:
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user