mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 06:23:35 +02:00
Fix Linux default audio device debug messages
Linux had no default audio implementation, implemented using QAudioDeviceInfo.
This commit is contained in:
parent
a9b56b5f3a
commit
2ec541f2ef
1 changed files with 8 additions and 0 deletions
|
@ -610,6 +610,14 @@ QString defaultAudioDeviceName(QAudio::Mode mode) {
|
||||||
<< " [" << deviceName << "] [" << "]";
|
<< " [" << deviceName << "] [" << "]";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef Q_OS_LINUX
|
||||||
|
if ( mode == QAudio::AudioInput ) {
|
||||||
|
deviceName = QAudioDeviceInfo::defaultInputDevice().deviceName();
|
||||||
|
} else {
|
||||||
|
deviceName = QAudioDeviceInfo::defaultOutputDevice().deviceName();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
return deviceName;
|
return deviceName;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue