필터 지우기
필터 지우기

Detecting In-Use Audio Devices

조회 수: 1 (최근 30일)
Brian
Brian 2021년 5월 17일
답변: Pratyush 2024년 5월 16일
Is there a way to detect audio devices that are in-use by the Audio Toolbox? For example, if I use audioDeviceWriter to create a deviceWriter object and initialize that object, is there a way to detect that the device is being used without referencing that variable/object?

답변 (1개)

Pratyush
Pratyush 2024년 5월 16일
Hi Brian,
Detecting if an audio device is in use by MATLAB's Audio Toolbox without referencing the specific "audioDeviceWriter" object is not directly supported. Workarounds include:
  • Attempt to use the device with "audioDeviceWriter" and handle any errors, which might indicate the device is in use.
  • Use platform-specific system calls or utilities to check the device's status outside MATLAB, though this method is complex and unreliable.
  • Implement a logging system to track when applications or scripts use an audio device, requiring consistent application across all scripts.
Direct detection is not straightforward and requires indirect methods or external tools, with varying degrees of reliability and complexity.

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by