Package net.sf.asap

Examples of net.sf.asap.ASAP_ModuleInfo


    return Manager.createPlayer(is, "audio/x-wav");
  }

  private void playSong(int song) throws IOException, MediaException
  {
    ASAP_ModuleInfo module_info = asap.getModuleInfo();
    int duration = module_info.durations[song];

    gauge = new Gauge(null, false, 1, 0);
    Form playForm = new Form("ASAP " + ASAP.VERSION);
    appendStringItem(playForm, "Name: ", module_info.name);
View Full Code Here


      is.close();
    } catch (IOException e) {
      showStatus("ERROR LOADING " + filename);
      return;
    }
    ASAP_ModuleInfo module_info;
    synchronized (asap) {
      asap.load(filename, module, module_len);
      module_info = asap.getModuleInfo();
      if (song < 0)
        song = module_info.default_song;
View Full Code Here

    byte[] module = new byte[ASAP.MODULE_MAX];
    int module_len = is.read(module);
    is.close();
    ASAP asap = new ASAP();
    asap.load(inputFilename, module, module_len);
    ASAP_ModuleInfo module_info = asap.getModuleInfo();
    if (song < 0)
      song = module_info.default_song;
    if (duration < 0) {
      duration = module_info.durations[song];
      if (duration < 0)
View Full Code Here

TOP

Related Classes of net.sf.asap.ASAP_ModuleInfo

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.