Android Open Source - non audio






From Project

Back to project page non.

License

The source code is released under:

MIT License

If you think the Android project non listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package non.plugins;
/*ww w  .  ja  v  a  2  s. c  o  m*/
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;

import non.Non;

public class audio extends Plugin {
    public String author()      { return "Thomas Slusny"; }
    public String license()     { return "MIT"; }
    public String description() { return "Plugin for playing audio and music files."; }
    
    public Class<?> musicLoader = Music.class;
    public Class<?> soundLoader = Sound.class;

    public Music music(String file) {
        return (Non.assets.isLoaded(file)) ? (Music)Non.assets.get(file, musicLoader) : Gdx.audio.newMusic(Non.file(file));
    }
    
    public Sound sound(String file) {
        return (Non.assets.isLoaded(file)) ? (Sound)Non.assets.get(file, soundLoader) : Gdx.audio.newSound(Non.file(file));
    }
}




Java Source Code List

%PACKAGE%.android.AndroidLauncher.java
%PACKAGE%.desktop.DesktopLauncher.java
%PACKAGE%.ios.IOSLauncher.java
launcher.Main.java
non.InputHandle.java
non.Line.java
non.NonBuffer.java
non.Non.java
non.Quad.java
non.languages.Language.java
non.languages.javascript.java
non.languages.lua.java
non.plugins.Plugin.java
non.plugins.audio.java
non.plugins.graphics.java
non.plugins.input.java
non.plugins.lights.java
non.plugins.math.java
non.plugins.network.java
non.plugins.non.java
non.plugins.physics.java