Contenuto principale

getPlayerNames

Player device names

Since R2025a

    Description

    playerNames = audiostreamer.getPlayerNames returns a list of names of audio player devices that are available and compatible with the audiostreamer object.

    Tip

    You can use the audiodevreset function to refresh the list of available audio devices.

    example

    playerNames = as.getPlayerNames returns the list using an existing audiostreamer object.

    Examples

    collapse all

    Obtain the names of audio player devices that are available and compatible with the audiostreamer object.

    playerNames = audiostreamer.getPlayerNames
    playerNames = 
    
      2×1 string array
    
        "Primary Sound Driver"
        "Speakers (Horizon Virtual Audio (DevTap))"

    Input Arguments

    collapse all

    The audiostreamer object to query.

    Output Arguments

    collapse all

    Names of the available audio player devices, returned as a string array.

    Version History

    Introduced in R2025a