[sharefunshare] mp3 play mxj~ object

Hallo, I was sick and tired of the slow, cumbersome spigot~ way of playing mp3s so I developed my own (slighty shonky) mxj~ object to stream mp3s from disk, using jLayer. Don’t know if anyone else will find this useful, but below is the download link. The rar contains the .class, the required .jar file, the source, and an example (max5).
It’s pretty feature slim – play pause seek – but it’s good for what I need it for. If anyone fancies improving/extending it, pm me and i’ll do my best to explain the code (obviously it’s not commented).

I’ve tried to use your library, ‘ve followed the install.txt but something goes wrong (see below)

java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
Could not load class ‘mp3play’

The mistake is that there is no code in the file mp3play.java

Does someone have successfully use the object of Brico or find an other way to read mp3 (except import in buffer or the use of spigot).
Best

oh shit, sorry i’ve only just noticed this! if you still need it (although it was 8 months ago you’ve probably moved on), i’ll do my best to help you.
looking at the error you got – is your version of java up-to-date? And about the empty source file, here it is:

java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
Could not load class ‘mp3play’

I tried starting "fresh" and loaded the above source into an [mxj quickie mp3play] object, and tried to compile. Before starting max, I put the RandomAccessFileInputStream.class into the Max "class" directory. This compile failed:

No, I haven’t gotten into tweaking it at all. I just wanted to confirm it worked! I’ll try building something simple around it in the next few months and see how well it performs. I have some other things ahead of this in the work queue.
Ultimately, the best solution for max might lie in using jlayer to load a buffer~, in hopes of it being faster than buffer~’s quicktime-based "import" command….