# Can't get any audio using AudioIn

**URL:** <https://discourse.processing.org/t/cant-get-any-audio-using-audioin/8490>\
**Category:** Libraries\
**Created:** [February 17, 2019, 6:12pm UTC](https://discourse.processing.org/t/cant-get-any-audio-using-audioin/8490 "2019-02-17T18:12:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SkinnyPete](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@SkinnyPete](https://discourse.processing.org/u/SkinnyPete)\
**Post date:** [February 17, 2019, 6:12pm UTC](https://discourse.processing.org/t/cant-get-any-audio-using-audioin/8490/1 "2019-02-17T18:12:40Z")

</div>

Hello,  
I am new to processing.sound and not that experienced generally so please forgive any silly mistakes.

```auto
import processing.sound.*;

FFT fft;
AudioIn in;
SoundFile snd;

int bands = 256;
float[] spectrum = new float[bands];

void setup() {
 size(512,512);
 fft = new FFT(this, bands);
 in = new AudioIn(this, 2);
 in.start();
 snd = new SoundFile(this, "sample.mp3");
 snd.play();
 fft.input(in);
 
}

void draw() {
  background(255);
  fft.analyze(spectrum);
  for(int i = 0;i<bands;i++) {
   line(i,height,i,height-spectrum[i]*100); 
  }
  
}

```

I have almost verbatim copied the processing FFT example using an AudioIn, but I cannot get it to actually receive any audio from the soundcard. The code worked fine when fed a SoundFile. I’m running Windows 10, processing 3.5.3.  
I presume the issue is in JSyn from the following errors:

```auto
Feb 17, 2019 6:03:58 PM com.jsyn.devices.javasound.JavaSoundAudioDevice <init>
INFO: JSyn: default output latency set to 80 msec for Windows 10
Feb 17, 2019 6:03:58 PM com.jsyn.engine.SynthesisEngine start
INFO: Pure Java JSyn from www.softsynth.com, rate = 44100, RT, V16.8.0 (build 463, 2017-10-16)
java.lang.RuntimeException: Audio Input not configured in start() method.
	at com.jsyn.engine.SynthesisEngine.getInputBuffer(Unknown Source)
	at com.jsyn.unitgen.ChannelIn.generate(Unknown Source)
	at com.jsyn.unitgen.UnitGenerator.pullData(Unknown Source)
	at com.jsyn.ports.PortBlockPart.pullData(Unknown Source)
	at com.jsyn.ports.UnitInputPort.pullData(Unknown Source)
	at com.jsyn.unitgen.UnitGenerator.pullData(Unknown Source)
	at com.jsyn.ports.PortBlockPart.pullData(Unknown Source)
	at com.jsyn.ports.UnitInputPort.pullData(Unknown Source)
	at com.jsyn.unitgen.UnitGenerator.pullData(Unknown Source)
	at com.jsyn.ports.PortBlockPart.pullData(Unknown Source)
	at com.jsyn.ports.UnitInputPort.pullData(Unknown Source)
	at com.jsyn.unitgen.UnitGenerator.pullData(Unknown Source)
	at com.jsyn.ports.PortBlockPart.pullData(Unknown Source)
	at com.jsyn.ports.UnitInputPort.pullData(Unknown Source)
	at com.jsyn.unitgen.UnitGenerator.pullData(Unknown Source)
	at com.jsyn.engine.SynthesisEngine.synthesizeBuffer(Unknown Source)
	at com.jsyn.engine.SynthesisEngine.generateNextBuffer(Unknown Source)
	at com.jsyn.engine.SynthesisEngine$EngineThread.run(Unknown Source)
Feb 17, 2019 6:04:08 PM com.jsyn.engine.SynthesisEngine$EngineThread run
INFO: JSyn synthesis thread in finally code.

```

Many thanks for any assistance.

---

<div class="post-metadata">

**Author:** ![earp123](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/earp123/32/8916_2.png) [@earp123](https://discourse.processing.org/u/earp123)\
**Post date:** [April 21, 2020, 4:54am UTC](https://discourse.processing.org/t/cant-get-any-audio-using-audioin/8490/2 "2020-04-21T04:54:49Z")

</div>

At first glance, try calling the AudioIn instance something other than ‘in’. I believe that is a reserved word in processing which seems to be borrowing from python syntax in this instance.
