Package org.kc7bfi.jflac.io

Examples of org.kc7bfi.jflac.io.BitInputStream


     * The constructor.
     * @param inputStream    The input stream to read data from
     */
    public FLACDecoder(InputStream inputStream) {
        this.inputStream = inputStream;
        this.bitStream = new BitInputStream(inputStream);
        samplesDecoded = 0;
        //state = DECODER_SEARCH_FOR_METADATA;
    }
View Full Code Here


     *
     * @param inputStream The input stream to read data from
     */
    public FLACDecoder(InputStream inputStream) {
        this.inputStream = inputStream;
        this.bitStream = new BitInputStream(inputStream);
        lastFrameNumber = 0;
        samplesDecoded = 0;
    }
View Full Code Here

         * TODO what if StreamInfo not last?
         */
        streamInfo.write(bitOutStream, false);

        // flush bit input stream
        BitInputStream bis = decoder.getBitInputStream();
        int bytesLeft = bis.getInputBytesUnconsumed();
        byte[] b = new byte[bytesLeft];
        bis.readByteBlockAlignedNoCRC(b, bytesLeft);
        byteOutStream.write(b);

        ByteArrayInputStream byteInStream = new ByteArrayInputStream(byteOutStream.toByteArray());

        //ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
View Full Code Here

     *
     * @param inputStream The input stream to read data from
     */
    public FLACDecoder(InputStream inputStream) {
        this.inputStream = inputStream;
        this.bitStream = new BitInputStream(inputStream);
        //state = DECODER_SEARCH_FOR_METADATA;
        lastFrameNumber = 0;
        samplesDecoded = 0;
        //state = DECODER_SEARCH_FOR_METADATA;
    }
View Full Code Here

TOP

Related Classes of org.kc7bfi.jflac.io.BitInputStream

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.