We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › minim line input problem
Page Index Toggle Pages: 1
minim line input problem (Read 628 times)
minim line input problem
Aug 17th, 2008, 5:28am
 
Hi

i have tried to run the sketch getLineIn connected to my line input - unfortunately I get the error below any suggestions welcome?

=== Minim Error ===
=== Unable to return a TargetDataLine: unsupported format.

=== Minim Error ===
=== Minim.getLineIn: attempt failed, could not secure an AudioInput.


java.lang.NullPointerException
Re: minim line input problem
Reply #1 - Aug 18th, 2008, 3:33pm
 
try removing the sample rate
it defaults to 44something thousand and on the mac i was getting the same error until i used the below code instead

also noticed that some functions want a buffer of 1024 instead of 512
 lnin = Minim.getLineIn(Minim.STEREO, 512);

good luck
Re: minim line input problem
Reply #2 - Aug 19th, 2008, 1:44am
 
Yo ho that's done the trick thanks...

mp
www.thought-universe.co.uk
Page Index Toggle Pages: 1