주요 콘텐츠

getAudioDevices

사용 가능한 오디오 장치 나열

설명

devices = getAudioDevices(obj)는 사용 가능하고 오디오 I/O 객체 obj와 호환되는 오디오 장치 목록을 반환합니다.

예제

예제

모두 축소

audioDeviceReader 객체를 만든 다음, 객체에 대해 getAudioDevices를 호출합니다.

deviceReader = audioDeviceReader;
devices = getAudioDevices(deviceReader)
devices = 1×4 cell
    {'Default'}    {'Primary Sound Capture Driver'}    {'Headset Microphone (Plantronics C325-M)'}    {'HP 4120 Microphone (2- HP 4120)'}

audioDeviceWriter 객체를 만든 다음, 객체에 대해 getAudioDevices를 호출합니다.

deviceWriter = audioDeviceWriter;
devices = getAudioDevices(deviceWriter)
devices = 1×6 cell
    {'Default'}    {'Primary Sound Driver'}    {'Headset Earphone (Plantronics C325-M)'}    {'LEN LT2452pwC (NVIDIA High Definition Audio)'}    {'Speakers (Realtek High Definition Audio)'}    {'HP 4120 (2- HP 4120)'}

audioPlayerRecorder 객체를 만든 다음, 객체에 대해 getAudioDevices를 호출합니다.

playRec = audioPlayerRecorder;
devices = getAudioDevices(playRec)
devices = 1×2 cell
    {'Default'}    {'ASIO4ALL v2'}

입력 인수

모두 축소

오디오 I/O 객체로, audioDeviceReader 객체, audioDeviceWriter 객체 또는 audioPlayerRecorder 객체로 지정됩니다.

데이터형: object

출력 인수

모두 축소

사용 가능하고 호환되는 장치 목록.

audioDeviceReaderaudioDeviceWriter의 경우 오디오 장치 목록은 객체의 지정된 Driver 속성에 따라 달라집니다.

audioPlayerRecorder의 경우 나열된 오디오 장치는 전이중 모드를 지원하며 다음과 같이 플랫폼에 적합한 드라이버를 갖습니다.

  • Windows® –– ASIO™

  • Mac –– CoreAudio

  • Linux® –– ALSA

데이터형: cell

버전 내역

R2016a에 개발됨