mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-08-12 22:43:46 -04:00
Remove default audio devices from audio configuration
This enforces an audio input device in the settings dialog since we can't do anything without an input device. A nil audio output device is allowed with a warning.
This commit is contained in:
+2
-2
@@ -59,11 +59,11 @@ void SoundOutput::setFormat (QAudioDeviceInfo const& device, unsigned channels,
|
||||
{
|
||||
Q_EMIT error (tr ("Requested output audio format is not valid."));
|
||||
}
|
||||
if (!device.isFormatSupported (format))
|
||||
else if (!device.isFormatSupported (format))
|
||||
{
|
||||
Q_EMIT error (tr ("Requested output audio format is not supported on device."));
|
||||
}
|
||||
// qDebug () << "Selected audio output format:" << format;
|
||||
qDebug () << "Selected audio output format:" << format;
|
||||
|
||||
m_stream.reset (new QAudioOutput (device, format));
|
||||
audioError ();
|
||||
|
||||
Reference in New Issue
Block a user