/** * Creates an AudioSource which can be to manipulate a Sound buffer. An AudioSource can be created * multiple times and use the same Sound buffer. */ public AudioSource createAudioSource(final String _file, final StreamType _type) { final AudioBuffer<AndroidSound> buffer = (AudioBuffer<AndroidSound>) staticSoundManager.get(_file); if (buffer == null) { System.out.println("Sound Doesn't exist."); return null; } final AndroidSound sound = buffer.getBuffer(); return new AndroidSource(sound.getBuffer()); }