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 skips during playback
Page Index Toggle Pages: 1
Minim skips during playback (Read 1067 times)
Minim skips during playback
Apr 22nd, 2010, 8:31am
 
Hello,

I am trying to use minim and get skipping on playback no matter how small the file is.  Is there something I am unaware of?  Is it because I am on a PPC mac?  Ahh, please help I have tried everything just to get simple sound playback.

Here's the code in which I increased sample buffer to no avail (also, I would use sonia or ess but my code is written for processing version 1.01);

Quote:
import ddf.minim.*;

AudioPlayer player;
Minim minim;

void setup()
{
  size(512, 200, P3D);
  minim = new Minim(this);
  player = minim.loadFile("horizonsoundfinal.aiff", 4096);
  player.play();
}

void draw()
{
  background(0);
}

void stop()
{
  player.close();
  minim.stop();
  super.stop();
}



Gary
Re: Minim skips during playback
Reply #1 - Apr 23rd, 2010, 9:22pm
 
Well, I pasted code into processing version 0135 and everything worked fine with the sonia library, thought it would be a huge pain to change code for older version...
Page Index Toggle Pages: 1