summaryrefslogtreecommitdiff
path: root/songdbj/javazoom/jl/decoder/BitstreamErrors.java
diff options
context:
space:
mode:
Diffstat (limited to 'songdbj/javazoom/jl/decoder/BitstreamErrors.java')
-rw-r--r--songdbj/javazoom/jl/decoder/BitstreamErrors.java72
1 files changed, 72 insertions, 0 deletions
diff --git a/songdbj/javazoom/jl/decoder/BitstreamErrors.java b/songdbj/javazoom/jl/decoder/BitstreamErrors.java
new file mode 100644
index 0000000000..2bdee6d797
--- /dev/null
+++ b/songdbj/javazoom/jl/decoder/BitstreamErrors.java
@@ -0,0 +1,72 @@
1/*
2 * 11/19/04 1.0 moved to LGPL.
3 * 11/17/04 INVALIDFRAME code added. javalayer@javazoom.net
4 * 12/12/99 Initial version. mdm@techie.com
5 *-----------------------------------------------------------------------
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Library General Public License as published
8 * by the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public
17 * License along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 *----------------------------------------------------------------------
20 */
21
22package javazoom.jl.decoder;
23
24/**
25 * This interface describes all error codes that can be thrown
26 * in <code>BistreamException</code>s.
27 *
28 * @see BitstreamException
29 *
30 * @author MDM 12/12/99
31 * @since 0.0.6
32 */
33
34public interface BitstreamErrors extends JavaLayerErrors
35{
36
37 /**
38 * An undeterminable error occurred.
39 */
40 static public final int UNKNOWN_ERROR = BITSTREAM_ERROR + 0;
41
42 /**
43 * The header describes an unknown sample rate.
44 */
45 static public final int UNKNOWN_SAMPLE_RATE = BITSTREAM_ERROR + 1;
46
47 /**
48 * A problem occurred reading from the stream.
49 */
50 static public final int STREAM_ERROR = BITSTREAM_ERROR + 2;
51
52 /**
53 * The end of the stream was reached prematurely.
54 */
55 static public final int UNEXPECTED_EOF = BITSTREAM_ERROR + 3;
56
57 /**
58 * The end of the stream was reached.
59 */
60 static public final int STREAM_EOF = BITSTREAM_ERROR + 4;
61
62 /**
63 * Frame data are missing.
64 */
65 static public final int INVALIDFRAME = BITSTREAM_ERROR + 5;
66
67 /**
68 *
69 */
70 static public final int BITSTREAM_LAST = 0x1ff;
71
72}