mp3 to buffer

Apr 13, 2006 at 10:45am

mp3 to buffer

I guess this is something for Topher ;-)

In everyday’s max world, loading mp3 files is still a pain in the ass
because it uses QT to import it into a buffer~, and it takes so
looooooooooooooooong time for. As i’m able to read and write mp3 (and
ogg too) in my Java externals for max, i wonder what’s the best way to
import an mp3 file from an mxj, then poke it into an msp buffer~. My
Java buffer seems to have size expressed in frames, and seems to be an
Array of Bytes.
1 – Do i have to use a Java MSPBuffer ? In this case, how do i fill it ?
2 – Or do i have to directly poke into an msp buffer~ outside ? How ?
Signal outlet, remote send ?

thanks in advance

f.e

#25398
Apr 13, 2006 at 10:52am

In fact, all this would be a problem of converting a Byte array to
floats ?! But how do we do this

#74737
Apr 13, 2006 at 11:44am

On 13 Apr 2006, at 11:52, f.e wrote:

> In fact, all this would be a problem of converting a Byte array to
> floats ?! But how do we do this

Depending on the underlying representation, you could look at
DataInputStream and DataOutputStream. (I use these for marshalling
OSC messages – they work fine.)

– N.

nick rothwell — composition, systems, performance — http://
http://www.cassiel.com

#74738

You must be logged in to reply to this topic.