Author Topic: MP3 codec plugin for Paul's 3D Sound System  (Read 4789 times)

Offline fireandfuel

  • bit
  • Posts: 3
    • View Profile
MP3 codec plugin for Paul's 3D Sound System
« on: June 03, 2012, 02:57:59 PM »
I developed a mp3 codec plugin for Paul's 3D Sound System and licensed it under terms of LGPLv3.
It based on parts of JLayer (mpeg decoder library), MP3SPI and Tritonus library.

There is no guarantee; if you want to use it, it will be on your own risk!

Please let me know if something goes wrong with the playback or if you have a patch, advice, critique, etc.

Download:
Source code: newbielink:https://github.com/fireandfuel/CodecJLayerMP3 [nonactive]

I release a new version of the plugin when critical bugs are fixed, the svn repo contains much changes or to keep it compatible with the latest version of Paul's 3D Sound System.

How to deploy:

Use the ANT build script build.xml. Default build target is: main

How to use it:
If you use a IDE: Add the codec plugin to your build path.

Add the line
Code: newbielink:javascript:void(0); [nonactive]
import de.cuina.fireandfuel.CodecJLayerMP3; to your the imports and
Code: newbielink:javascript:void(0); [nonactive]
SoundSystemConfig.setCodec("mp3", CodecJLayerMP3.class);to the codecs setup at your class where Paul's Sound System is used.

Simply play a mp3 with a command from Paul's Sound System.

PS: Please DO NOT send me support requests or bug reports with Private Messages (PM) - I ignore them - because I want the support/reports to be public. Use this thread instead of PM.
« Last Edit: August 30, 2013, 06:07:33 AM by fireandfuel »

Offline Lioncash

  • Developer
  • byte
  • *****
  • Posts: 29
    • View Profile
Re: MP3 codec plugin for Paul's 3D Sound System (WiP)
« Reply #1 on: June 03, 2012, 05:07:27 PM »
Well, first off, I saw a load of typos in the Javadoc comments. I fixed those for you in the patch attached to this post.

I also changed the modifier order of some methods/fields  (the way they were was bad styling).

I changed some other things around too, such as using System.arraycopy instead of manually copying arrays using for loops. It simplifies code more.

Offline fireandfuel

  • bit
  • Posts: 3
    • View Profile
Re: MP3 codec plugin for Paul's 3D Sound System (WiP)
« Reply #2 on: June 04, 2012, 08:57:30 AM »
Thank you Lioncash. I applied your patch and everything works.  ;D
It's already in the SVN Repo.

Offline fireandfuel

  • bit
  • Posts: 3
    • View Profile
Re: MP3 codec plugin for Paul's 3D Sound System
« Reply #3 on: August 30, 2013, 06:10:07 AM »
I moved the project to github (don't want to use sourceforge anymore):
newbielink:https://github.com/fireandfuel/CodecJLayerMP3 [nonactive]