getAudioDevices
List available audio devices
Description
Examples
List Audio Devices Available to audioDeviceReader
Create an audioDeviceReader
object and then call getAudioDevices
on your object.
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)'}
List Audio Devices Available to audioDeviceWriter
Create an audioDeviceWriter
object, and then call getAudioDevices
on your object.
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)'}
List Audio Devices Available to audioPlayerRecorder
Create an audioPlayerRecorder
object, and then call getAudioDevices
on your object.
playRec = audioPlayerRecorder; devices = getAudioDevices(playRec)
devices = 1×2 cell
{'Default'} {'ASIO4ALL v2'}
Input Arguments
obj
— Audio I/O object
audioDeviceReader
object |
audioDeviceWriter
object | audioPlayerRecorder
object
Audio I/O object, specified as an audioDeviceReader
object,
audioDeviceWriter
object, or
audioPlayerRecorder
object.
Data Types: object
Output Arguments
devices
— List of available and compatible devices
array
List of available and compatible devices.
For audioDeviceReader
and audioDeviceWriter
, the list of
audio devices depends on the specified Driver
property
of your object.
For audioPlayerRecorder
, the audio
devices listed support full-duplex mode and have a platform-appropriate driver:
Windows® –– ASIO™
Mac –– CoreAudio
Linux® –– ALSA
Data Types: cell
Version History
Introduced in R2016a
Ouvrir l'exemple
Vous possédez une version modifiée de cet exemple. Souhaitez-vous ouvrir cet exemple avec vos modifications ?
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)