Class Name

AudioIn

Description

AudioIn lets you grab the audio input from your sound card.

Examples

  • 
    import processing.sound.*;
    AudioIn in;
    
    void setup() {
      size(640, 360);
      background(255);
        
      // Create the Input stream
      in = new AudioIn(this, 0);
      in.play();
    }      
    
    void draw() {
    }
    
    

Constructors

  • AudioIn(parent)
  • AudioIn(parent, in)

Parameters

  • parenttypically use "this"
  • ininput channel number (optional, default 0)

Methods

  • amp()Change the amplitude/volume of this sound.
  • pan()Move the sound in a stereo panorama.
  • play()Start capturing the input stream and route it to the audio output
  • set()Set amplitude and pan position with one method.
  • start()Start the input stream without routing it to the audio output.
  • stop()Stop capturing sound from this audio input.