當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Processing AudioIn用法及代碼示例

Processing, 類AudioIn用法介紹。

構造函數

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

參數

  • parent 通常使用"this"
  • in 輸入通道號(可選,默認0)

說明

AudioIn 讓您從聲卡中獲取音頻輸入。

例子


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() {
}

方法

相關用法


注:本文由純淨天空篩選整理自processing.org大神的英文原創作品 AudioIn。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。