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 audio quality during playback
Page Index Toggle Pages: 1
Minim audio quality during playback (Read 469 times)
Minim audio quality during playback
Mar 6th, 2008, 2:00pm
 
Hi,

I'm playing around with the Minim library, it's really great. Thanks a lot to DDF for bringing this to Processing.

I'm having issue with playback quality now. I using the AudioPlayer-PlayAFile example and get glitches, small beeps, shutterings and more generally non-smooth playback with it. I tried with aif files instead of mp3s (both my own and the one included in the example), but still no smooth and clear playback. I know the latency can be an issue (compared to AudioSnippet), but should it affect the quality of the playback?

I'm using Processing 0135 on a recent MacBook Pro (OSX 10.5.2, 2Gb ram).

Any tips or cues for making sure the audio is playing back smoothly.

thanks in advance.

/Camille
Re: Minim audio quality during playback
Reply #1 - Mar 8th, 2008, 7:57pm
 
It's possible that the size of the buffer being used for the file is not big enough. Typically glitches are caused by buffer underrun, which means that the audio system is asking for more sound and your program doesn't have any to give it, so there is a break in the audible output. You can pass in a value for the buffer size when you request an audio file, so you should try increasing that, rather than using the default size, if that's what you are doing.
Re: Minim audio quality during playback
Reply #2 - Mar 9th, 2008, 1:47pm
 
Hi,

thanks for the reply. I tried with a bigger buffer value (3000 instead of 512) and while it's a bit better there are still playback breaks.

I've recorded a little quicktime of the behavior.

http://www.guchmu.com/clients/upload/processing_minim_quality_test.mov
about 2.6 MB, low framerate but the audio track is good quality.

the source code for the test player is available here:

http://www.interactiondesign.se/blog/2008/03/05/tuesdays-stuff

thanks again for your help and assistance,

/Camille
Page Index Toggle Pages: 1