Package entagged.audioformats.wav.util

Examples of entagged.audioformats.wav.util.WavFormatHeader


    if(!wrh.isValid())
      throw new CannotReadException("No valid RIFF Header found");
   
    b = new byte[24];
    raf.read(b);
    WavFormatHeader wfh = new WavFormatHeader(b);
    if(!wfh.isValid())
      throw new CannotReadException("No valid WAV Header found");
   
//    info.setLength( mh.getLength());
    info.setPreciseLength(mh.getPreciseLength());
    info.setChannelNumber( wfh.getChannelNumber() );
    info.setSamplingRate( wfh.getSamplingRate() );
    info.setBitrate( computeBitrate(info.getLength(), raf.length()) );
   
    info.setEncodingType( "Monkey Audio v" + (((double)version)/1000)+", compression level "+mh.getCompressionLevel());
    info.setExtraEncodingInfos( "" );
   
View Full Code Here

TOP

Related Classes of entagged.audioformats.wav.util.WavFormatHeader

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.