Examples of ADTSDemultiplexer


Examples of net.sourceforge.jaad.adts.ADTSDemultiplexer

                in = new BufferedInputStream(IcyInputStream.create(track), BUFFER_SIZE);
                trackData.setCodec("AAC Stream");
            } else
                in = new BufferedInputStream(new FileInputStream(trackData.getFile()), BUFFER_SIZE);

            adts = new ADTSDemultiplexer(in);
            audioFormat = new AudioFormat(adts.getSampleFrequency(), 16, adts.getChannelCount(), true, true);
            decoder = new Decoder(adts.getDecoderSpecificInfo());
            buffer = new SampleBuffer();
            trackData.setChannels(adts.getChannelCount());
            trackData.setSampleRate(adts.getSampleFrequency());
View Full Code Here

Examples of net.sourceforge.jaad.adts.ADTSDemultiplexer

    boolean canHandle = false;
    if(new String(b, 4, 4).equals("ftyp")) canHandle = true;
    else {
      final BitStream bit = new BitStream(b);
      try {
        ADTSDemultiplexer adts = new ADTSDemultiplexer(in);
        canHandle = true;
      }
      catch(Exception e) {
        canHandle = false;
      }
View Full Code Here

Examples of net.sourceforge.jaad.adts.ADTSDemultiplexer

  private AudioFormat audioFormat = null;
  private byte[] saved;

  AACAudioInputStream(InputStream in, AudioFormat format, long length) throws IOException {
    super(in, format, length);
    adts = new ADTSDemultiplexer(in);
    decoder = new Decoder(adts.getDecoderSpecificInfo());
    sampleBuffer = new SampleBuffer();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.