Name

list()

Class

Sound

Description

Print and return information on available audio devices and their number of input/output channels. Under normal circumstances you will not want to call Sound.list() in your actual sketch code, but only for testing to figure out which sound cards are available on a new system and how to select them. However, if the order of devices on your system is prone to fluctuate from reboot to reboot, you can also use the device name array returned by the function to automate device selection by name in your own code.

Examples

  • import processing.sound.*;
    
    void setup() {
      Sound.list();
    }
    

Syntax

  • Sound.list(filter)
  • Sound.list()
  • Sound.list(printAll)

Parameters

  • filter(String)only list audio devices whose device name contains this string

Return

  • String[]