From 2a958bc802cd286046717c0b4c9fbb7d0ebbf390 Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Sat, 7 Dec 2024 12:16:17 -0600 Subject: [PATCH] Adding audio device type to debug --- src/Qt/AudioPlaybackThread.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Qt/AudioPlaybackThread.cpp b/src/Qt/AudioPlaybackThread.cpp index a85348f31..587743fea 100644 --- a/src/Qt/AudioPlaybackThread.cpp +++ b/src/Qt/AudioPlaybackThread.cpp @@ -81,12 +81,16 @@ namespace openshot // Populate all possible device types and device names (starting with the user's requested settings) std::vector devices{ { requested_device } }; for (const auto t : mgr->getAvailableDeviceTypes()) { + std::stringstream type_debug; + type_debug << "AudioDeviceManagerSingleton::Instance (iterate audio device type: " << t->getTypeName() << ")"; + ZmqLogger::Instance()->AppendDebugMethod(type_debug.str(), "rate", rate, "channels", channels); + t->scanForDevices(); for (const auto n : t->getDeviceNames()) { AudioDeviceInfo device = { t->getTypeName(), n.trim() }; devices.push_back(device); std::stringstream device_debug; - device_debug << "AudioDeviceManagerSingleton::Instance (iterate audio device name: " << device.name << ")"; + device_debug << "AudioDeviceManagerSingleton::Instance (iterate audio device name: " << device.name << ", type: " << t->getTypeName() << ")"; ZmqLogger::Instance()->AppendDebugMethod(device_debug.str(), "rate", rate, "channels", channels); } }