1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-29 05:24:18 -04:00

Make AudioDeviceInfo singleton, remove the ones in AudioDeviceManager

This commit is contained in:
mxi-box
2024-03-30 12:10:21 +08:00
parent 346ff80c19
commit eef0084a6e
8 changed files with 86 additions and 75 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ bool AudioOutputDevice::start(int deviceIndex, int sampleRate)
}
else
{
QList<AudioDeviceInfo> devicesInfo = AudioDeviceInfo::availableOutputDevices();
auto &devicesInfo = AudioDeviceInfo::availableOutputDevices();
if (deviceIndex < devicesInfo.size())
{