mp3 to buffer


    Apr 13 2006 | 10:45 am
    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

    • Apr 13 2006 | 10:52 am
      In fact, all this would be a problem of converting a Byte array to
      floats ?! But how do we do this
    • Apr 13 2006 | 11:44 am
      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://
      www.cassiel.com