mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 22:42:31 +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 << "] [" << "]";
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
if ( mode == QAudio::AudioInput ) {
|
||||
deviceName = QAudioDeviceInfo::defaultInputDevice().deviceName();
|
||||
} else {
|
||||
deviceName = QAudioDeviceInfo::defaultOutputDevice().deviceName();
|
||||
}
|
||||
#endif
|
||||
return deviceName;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue