mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 15:33:10 +02:00
fixed naming to match standards
This commit is contained in:
parent
c7e1fdaeac
commit
421cff1cb2
3 changed files with 13 additions and 14 deletions
|
@ -306,15 +306,15 @@ void AudioDeviceList::onDevicesChanged(const QList<HifiAudioDeviceInfo>& devices
|
|||
}
|
||||
|
||||
switch (deviceInfo.getDeviceType()) {
|
||||
case HifiAudioDeviceInfo::hmd:
|
||||
device.type = "hmd";
|
||||
break;
|
||||
case HifiAudioDeviceInfo::desktop:
|
||||
device.type = "desktop";
|
||||
break;
|
||||
case HifiAudioDeviceInfo::both:
|
||||
device.type = "both";
|
||||
break;
|
||||
case HifiAudioDeviceInfo::hmd:
|
||||
device.type = "hmd";
|
||||
break;
|
||||
case HifiAudioDeviceInfo::desktop:
|
||||
device.type = "desktop";
|
||||
break;
|
||||
case HifiAudioDeviceInfo::both:
|
||||
device.type = "both";
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ HifiAudioDeviceInfo& HifiAudioDeviceInfo::operator=(const HifiAudioDeviceInfo& o
|
|||
return *this;
|
||||
}
|
||||
|
||||
|
||||
bool HifiAudioDeviceInfo::operator==(const HifiAudioDeviceInfo& rhs) const {
|
||||
//Does the QAudioDeviceinfo match as well as is this the default device or
|
||||
return getDevice() == rhs.getDevice() && isDefault() == rhs.isDefault();
|
||||
|
|
|
@ -23,7 +23,7 @@ class HifiAudioDeviceInfo : public QObject {
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum deviceType {
|
||||
enum DeviceType {
|
||||
desktop,
|
||||
hmd,
|
||||
both
|
||||
|
@ -38,7 +38,7 @@ public:
|
|||
}
|
||||
|
||||
|
||||
HifiAudioDeviceInfo(QAudioDeviceInfo deviceInfo, bool isDefault, QAudio::Mode mode, deviceType devType=both) :
|
||||
HifiAudioDeviceInfo(QAudioDeviceInfo deviceInfo, bool isDefault, QAudio::Mode mode, DeviceType devType=both) :
|
||||
_audioDeviceInfo(deviceInfo),
|
||||
_isDefault(isDefault),
|
||||
_mode(mode),
|
||||
|
@ -61,7 +61,7 @@ public:
|
|||
QAudioDeviceInfo getDevice() const { return _audioDeviceInfo; }
|
||||
bool isDefault() const { return _isDefault; }
|
||||
QAudio::Mode getMode() const { return _mode; }
|
||||
deviceType getDeviceType() const { return _deviceType; }
|
||||
DeviceType getDeviceType() const { return _deviceType; }
|
||||
HifiAudioDeviceInfo& operator=(const HifiAudioDeviceInfo& other);
|
||||
bool operator==(const HifiAudioDeviceInfo& rhs) const;
|
||||
bool operator!=(const HifiAudioDeviceInfo& rhs) const;
|
||||
|
@ -71,7 +71,7 @@ private:
|
|||
QAudioDeviceInfo _audioDeviceInfo;
|
||||
bool _isDefault { false };
|
||||
QAudio::Mode _mode { QAudio::AudioInput };
|
||||
deviceType _deviceType{ both };
|
||||
DeviceType _deviceType{ both };
|
||||
|
||||
public:
|
||||
static const QString DEFAULT_DEVICE_NAME;
|
||||
|
|
Loading…
Reference in a new issue