Package com.badlogic.gdx.audio

Examples of com.badlogic.gdx.audio.Sound


        }
    }

    @Override
    public void playSound(String name, boolean loop) {
        Sound s = m_soundList.get(name);
        if (loop) {
            s.loop(m_volumeFX);
        } else {
            s.play(m_volumeFX);

        }
    }
View Full Code Here


                        m_musicList.put(name, m);
                        break;
                    }
                    case "sound": {
                        FileHandle f = new FileHandle(new File(entityPath));
                        Sound s = Gdx.audio.newSound(f);
                        m_soundList.put(name, s);
                        break;
                    }
                    case "playlist":
                        m_playlistList.put(name, entityPath);
View Full Code Here

   * Add sound.
   *
   */
  private void add(SoundDefinition definition)
  {
    Sound sound = null;

    // Load sound
    sound = Gdx.audio.newSound(Gdx.files.internal(definition.getPath()));

    String name = definition.getName();
View Full Code Here

    sound = Gdx.audio.newSound(file);
  }

  @Override
  public Sound loadSync (AssetManager manager, String fileName, FileHandle file, SoundParameter parameter) {
    Sound sound = this.sound;
    this.sound = null;
    return sound;
  }
View Full Code Here

TOP

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

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.