Package org.spoutcraft.client.sound

Examples of org.spoutcraft.client.sound.QueuedSound


      System.out.println("Rejecting download of invalid audio: " + fileName);
      return;
    }
    File song = FileUtil.findFile(plugin, fileName);
    if (song != null && song.exists()) {
      QueuedSound action = new QueuedSound(song, x, y, z, volume, distance, soundEffect);
      action.run();
      return;
    } else {
      song = new File(directory, fileName);
    }

    QueuedSound action = new QueuedSound(song, x, y, z, volume, distance, soundEffect);
    Download download = new Download(fileName, directory, url, action);
    action.setNotify(!download.isDownloaded() && notify);
    if (!download.isDownloaded() && notify) {
      SpoutClient.getInstance().getActivePlayer().showAchievement("Downloading Music...", fileName, 2256 /*Gold Record*/);
    }
    FileDownloadThread.getInstance().addToDownloadQueue(download);
  }
 
View Full Code Here

TOP

Related Classes of org.spoutcraft.client.sound.QueuedSound

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.