marciodrosa/ZineMob — Issue #12: Load audio files like mp3, ogg and wave
Author: marciodrosa
Created: 2012-03-06 23:50:18+00:00
State: open
Labels: feature

Add methos on class Sound to load sound files like mp3, wave and ogg. The current version loads midi files only.

public static Sound loadMp3(String resourceName)
public static Sound loadWave(String resourceName)
public static Sound loadOgg(String resourceName)

* a generic method called load(String resourceName) can be created. This method calls one of the above methods, detecting the correct type according to the file extension.
* perhaps can be necessary to create signatures for those methods that receives an InputStream to load the sound.
* The behavior of the loaded mp3, wave or ogg is the same of the current midi sounds.