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:
Roland Winklmeier
2013-12-06 21:26:08 +01:00
committed by Mathew Sutcliffe
parent 0bae898db8
commit db4a3c5de4
7 changed files with 534 additions and 275 deletions

View File

@@ -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:
/*!