Package com.badlogic.gdx.audio

Examples of com.badlogic.gdx.audio.Music


                String name = e.getAttribute("name");
                String entityPath = e.getAttribute("path");
                switch (type) {
                    case "music": {
                        FileHandle f = new FileHandle(new File(entityPath));
                        Music m = Gdx.audio.newMusic(f);
                        m_musicList.put(name, m);
                        break;
                    }
                    case "sound": {
                        FileHandle f = new FileHandle(new File(entityPath));


    music = Gdx.audio.newMusic(file);
  }

  @Override
  public Music loadSync (AssetManager manager, String fileName, FileHandle file, MusicParameter parameter) {
    Music music = this.music;
    this.music = null;
    return music;
  }

TOP

Related Classes of com.badlogic.gdx.audio.Music

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.