Skip to content

Does AudioIn() support using channels beyond the first two channels of an input device? #116

@halfwizard

Description

@halfwizard

I have connected my audio interface as the main input device on my computer. My device has 4 inputs and I am able to receive input on channels 0 and 1 with AudioIn(). However, when I try channel 2 or 3 I get the following error:
ERROR: /synth/map/input: External audio bus id 2 out of range ERROR: /synth/map/input: External audio bus id 3 out of range
Does AudioIn() only support using the first two channels from an input device?

Here is some stripped down code that produces the error:

import processing.sound.*;

AudioIn in_a;
AudioIn in_b;
AudioIn in_c;
AudioIn in_d;

void setup(){
  in_a = new AudioIn(this,0);
  in_b = new AudioIn(this,1);
  in_c = new AudioIn(this,2);
  in_d = new AudioIn(this,3);
  
  in_a.start();
  in_b.start();
  in_c.start();
  in_d.start();
}

void draw(){
}

I'm using Processing 3.3.6 with Sound 1.4.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions