Path: blob/main/src/lwjgl/java/javazoom/jl/decoder/BitstreamErrors.java
8650 views
/*1* 11/19/04 1.0 moved to LGPL.2* 11/17/04 INVALIDFRAME code added. [email protected]3* 12/12/99 Initial version. [email protected]4*-----------------------------------------------------------------------5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU Library General Public License as published7* by the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU Library General Public License for more details.14*15* You should have received a copy of the GNU Library General Public16* License along with this program; if not, write to the Free Software17* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.18*----------------------------------------------------------------------19*/2021package javazoom.jl.decoder;2223/**24* This interface describes all error codes that can be thrown25* in <code>BistreamException</code>s.26*27* @see BitstreamException28*29* @author MDM 12/12/9930* @since 0.0.631*/3233public interface BitstreamErrors extends JavaLayerErrors34{3536/**37* An undetermined error occurred.38*/39public static final int UNKNOWN_ERROR = BITSTREAM_ERROR + 0;4041/**42* The header describes an unknown sample rate.43*/44public static final int UNKNOWN_SAMPLE_RATE = BITSTREAM_ERROR + 1;4546/**47* A problem occurred reading from the stream.48*/49public static final int STREAM_ERROR = BITSTREAM_ERROR + 2;5051/**52* The end of the stream was reached prematurely.53*/54public static final int UNEXPECTED_EOF = BITSTREAM_ERROR + 3;5556/**57* The end of the stream was reached.58*/59public static final int STREAM_EOF = BITSTREAM_ERROR + 4;6061/**62* Frame data are missing.63*/64public static final int INVALIDFRAME = BITSTREAM_ERROR + 5;6566/**67*68*/69public static final int BITSTREAM_LAST = 0x1ff;7071}727374