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.
Page Index Toggle Pages: 1
Memory problems! (Read 587 times)
Memory problems!
Jan 16th, 2008, 11:23pm
 
UPDATE: Everything's fine and dandy, EXCEPT!!! I am getting an OutOfMemory error.


-------------------
I posted recently re: a quiz processing program, where boxes could be clicked to playback audio files. I've been able to get that to work, however I want to be able play a file when an area is clicked on that represents a right or wrong answer, so I need the file to play once from the beginning everytime a certain box is clicked on.

At the moment, the file will play once, but won't ever play again when other boxes are clicked. I've tried using .loop, but I don't want the sound to play continuously and I always want the sound to play from the start.

Is there any rewind, reset, or replay options in minim?

Cheers!!
Re: reset?
Reply #1 - Jan 17th, 2008, 3:43am
 
Yes, AudioPlayer and AudioSnippet have a rewind() method.
Re: reset?
Reply #2 - Jan 17th, 2008, 11:35am
 
Thanks. I was pretty sure I saw that in the minim documentation, but having looked for it yesterday and today I can no longer find it.

No worries, it seems to be working a treat!
Re: Memory problems!
Reply #3 - Jan 17th, 2008, 4:05pm
 
Hi again, I am now a good bit through this project, but I am getting an OutOfMemory error, I guess I am using a lot of objects and some audio, but I find it hard to believe that I'm using so much that my 1GB of memory can't handle it?

Any suggestions?

Cheers!
Re: Memory problems!
Reply #4 - Jan 17th, 2008, 4:20pm
 
UPDATE: Increasing the Memory in Processing, File>> Preferences, sorted the problem. We can all sleep soundly again.
Page Index Toggle Pages: 1