mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 17:55:34 +08:00
Replace QAudioDeviceInfo with CAudioDeviceInfo where possible
QAudioDeviceInfo is a low level technical class, which shouldn't be used in higher level code. Remove it from all APIs where possible and just create it in order to interface with QAudio
This commit is contained in:
committed by
Mat Sutcliffe
parent
8656131eb1
commit
a2e3700739
@@ -44,7 +44,7 @@ namespace BlackMisc
|
||||
CAudioDeviceInfo();
|
||||
|
||||
//! Constructor.
|
||||
CAudioDeviceInfo(DeviceType type, const QString &getName);
|
||||
CAudioDeviceInfo(DeviceType type, const QString &name);
|
||||
|
||||
//! Get the device name
|
||||
const QString &getName() const { return m_deviceName; }
|
||||
@@ -58,8 +58,8 @@ namespace BlackMisc
|
||||
//! Valid audio device object?
|
||||
bool isValid() const { return !m_deviceName.isEmpty(); }
|
||||
|
||||
//! To QAudioDeviceInfo
|
||||
QAudioDeviceInfo toAudioDeviceInfo() const;
|
||||
//! Is this a default device?
|
||||
bool isDefault() const { return m_deviceName == "default"; }
|
||||
|
||||
//! Convert the Qt type
|
||||
static DeviceType fromQtMode(QAudio::Mode m);
|
||||
|
||||
Reference in New Issue
Block a user