From 97e1f38858146f2ff891c4b50eb7f4379b6bebc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A6=E5=9B=BD=E5=BA=86?= Date: Wed, 15 May 2024 14:27:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2spk=E4=B8=8Emic=E4=B9=8B?= =?UTF-8?q?=E5=90=8E=E8=BF=87=E6=BB=A4=E6=97=A0=E5=85=B3=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 韦国庆 --- audiohandler/src/daudio_handler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/audiohandler/src/daudio_handler.cpp b/audiohandler/src/daudio_handler.cpp index 7fe7cc98..4501a463 100644 --- a/audiohandler/src/daudio_handler.cpp +++ b/audiohandler/src/daudio_handler.cpp @@ -119,6 +119,9 @@ std::vector DAudioHandler::Query() auto audioDevices = audioSrv->GetDevices(AudioStandard::DeviceFlag::ALL_DEVICES_FLAG); for (auto dev : audioDevices) { auto dhId = audioSrv->GetPinValueFromType(dev->deviceType_, dev->deviceRole_); + if (dhId != DEFAULT_RENDER_ID || dhId != DEFAULT_CAPTURE_ID) { + continue; + } cJSON* infoJson = cJSON_CreateObject(); if (infoJson == nullptr) { -- Gitee