Make sure entire mp3 is loaded into Buffer?

May 18, 2009 at 8:36pm

Make sure entire mp3 is loaded into Buffer?

How do I ensure that an mp3 is loaded entirely into my Buffer object? right now I have a ~Buffer 800000, but sometimes the files are much longer than that. What is the biggest that ~Buffer can be?

#43978
May 18, 2009 at 9:01pm

If you’re loading in an mp3 file then use the “import somefile.mp3 0 -1″ message, have a look at the reference page to see what the extra bits in that message do. If you’re loading in a wav or aif use “replace” instead. The maximum size of a buffer is dependent on the RAM in your machine.

lh

#157970
May 19, 2009 at 1:57am

Thanks, just what I needed.

#157971

You must be logged in to reply to this topic.