processing/processing-sound

Document USB audio interface support via ASIO on Windows

Open

#87 opened on Sep 20, 2023

 (4 comments) (0 reactions) (0 assignees)Java (49 forks)auto 404
Windowsdocumentationhelp wanted

Repository metrics

Stars
 (163 stars)
PR merge metrics
 (PR metrics pending)

Description

21ca5b8273f7f1b973218d4bca8590eb6801824e adds support for ASIO devices on Windows (through PortAudio). By default the Sound library will try to stick to JavaSound drivers if possible, so some multi-channel interfaces might only be listed as stereo devices unless PortAudio is loaded explicitly by a call to MultiChannel.usePortAudio() at the beginning of the sketch (see the MultiChannelOutput example for details).

Since output devices can now also be selected by name matching, the following two lines should usually suffice to load the PortAudio interface and select the ASIO device for input/output:

MultiChannel.usePortAudio();
Sound.outputDevice("ASIO");
//Sound.inputDevice("ASIO");

In order to expand the list of supported audio interfaces (as well as latency/buffer configuration caveats) in the README, please report any experiences (positive and negative) with using audio interfaces over the ASIO device in this issue.

Contributor guide