Examples of SampleBuffer


Examples of net.sourceforge.jaad.aac.SampleBuffer

     
      //create AAC decoder
      Decoder dec = new Decoder(audioTrack.getDecoderSpecificInfo());
      //decode
      Frame frame;
      SampleBuffer buf = new SampleBuffer();
      while(audioTrack.hasMoreFrames()) {
        frame = audioTrack.readNextFrame();
        try {
          dec.decodeFrame(frame.getData(), buf);
          b = buf.getData();
          line.write(b, 0, b.length);
        }
        catch(AACException e) {
          e.printStackTrace();
          //since the frames are separate, decoding can continue if one fails
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.