Package xnap.io

Examples of xnap.io.MP3File


    sb.append("\"");
    sb.append(NapFileHelper.getShareString(index, file));
    sb.append("\" ");

    if (file instanceof MP3File) {
      MP3File m = (MP3File)file;
      // do not calculate md5, send 0 instead
      sb.append("0 ");
      sb.append(m.length());
      sb.append(" ");
      sb.append(m.getBitrate());
      sb.append(" ");
      sb.append(m.getFrequency());
      sb.append(" ");
      sb.append(m.getPlayingTime());
    }
    else if (file instanceof VideoFile) {
      type = 10300;
      // use new share syntax
      sb.append(file.length());
View Full Code Here


  sb.append("\"");
  sb.append(NapFileHelper.getShareString(index, file));
  sb.append("\" ");
 
  if (file instanceof MP3File) {
      MP3File m = (MP3File)file;
      // do not calculate md5, send 0 instead
      sb.append("0 ");
      sb.append(m.length());
      sb.append(" ");
      sb.append(m.getBitrate());
      sb.append(" ");
      sb.append(m.getFrequency());
      sb.append(" ");
      sb.append(m.getPlayingTime());
  }
  else {
      sb.append("0 ");
      sb.append(file.length());
      sb.append(" 24 16000 600");
View Full Code Here

TOP

Related Classes of xnap.io.MP3File

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.