mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 19:23:28 +02:00
space cleanup
This commit is contained in:
parent
12cbc6ae62
commit
7d5dcbfc77
3 changed files with 3 additions and 3 deletions
|
@ -69,7 +69,6 @@ static QString getTargetDevice(bool hmd, QAudio::Mode mode) {
|
|||
return deviceName;
|
||||
}
|
||||
|
||||
|
||||
static QString getHmdAudioDeviceName(QAudio::Mode mode) {
|
||||
foreach(DisplayPluginPointer displayPlugin, PluginManager::getInstance()->getAllDisplayPlugins()) {
|
||||
if (displayPlugin && displayPlugin->isHmd()) {
|
||||
|
|
|
@ -116,6 +116,7 @@ QList<HifiAudioDeviceInfo> getAvailableDevices(QAudio::Mode mode, const QString&
|
|||
defaultDesktopDevice = HifiAudioDeviceInfo(devices.first(), true, mode, HifiAudioDeviceInfo::desktop);
|
||||
}
|
||||
newDevices.push_front(defaultDesktopDevice);
|
||||
|
||||
if (!hmdName.isNull()) {
|
||||
HifiAudioDeviceInfo hmdDevice;
|
||||
foreach(auto device, newDevices) {
|
||||
|
@ -143,7 +144,6 @@ void AudioClient::checkDevices() {
|
|||
|
||||
QString hmdInputName;
|
||||
QString hmdOutputName;
|
||||
|
||||
{
|
||||
QReadLocker readLock(&_hmdNameLock);
|
||||
hmdInputName = _hmdInputName;
|
||||
|
|
|
@ -244,7 +244,6 @@ public slots:
|
|||
bool switchAudioDevice(QAudio::Mode mode, const HifiAudioDeviceInfo& deviceInfo = HifiAudioDeviceInfo());
|
||||
bool switchAudioDevice(QAudio::Mode mode, const QString& deviceName, bool isHmd);
|
||||
void setHmdAudioName(QAudio::Mode mode, const QString& name);
|
||||
|
||||
// Qt opensles plugin is not able to detect when the headset is plugged in
|
||||
void setHeadsetPluggedIn(bool pluggedIn);
|
||||
|
||||
|
@ -315,6 +314,7 @@ private:
|
|||
// background tasks
|
||||
void checkDevices();
|
||||
void checkPeakValues();
|
||||
|
||||
void outputFormatChanged();
|
||||
void handleAudioInput(QByteArray& audioBuffer);
|
||||
void prepareLocalAudioInjectors(std::unique_ptr<Lock> localAudioLock = nullptr);
|
||||
|
@ -508,6 +508,7 @@ private:
|
|||
#endif
|
||||
|
||||
AudioSolo _solo;
|
||||
|
||||
QReadWriteLock _hmdNameLock;
|
||||
Mutex _checkDevicesMutex;
|
||||
QTimer* _checkDevicesTimer { nullptr };
|
||||
|
|
Loading…
Reference in a new issue