summaryrefslogtreecommitdiff
path: root/songdbj/de/jarnbjo/vorbis/Mapping.java
diff options
context:
space:
mode:
Diffstat (limited to 'songdbj/de/jarnbjo/vorbis/Mapping.java')
-rw-r--r--songdbj/de/jarnbjo/vorbis/Mapping.java59
1 files changed, 59 insertions, 0 deletions
diff --git a/songdbj/de/jarnbjo/vorbis/Mapping.java b/songdbj/de/jarnbjo/vorbis/Mapping.java
new file mode 100644
index 0000000000..24a2eaa19a
--- /dev/null
+++ b/songdbj/de/jarnbjo/vorbis/Mapping.java
@@ -0,0 +1,59 @@
1/*
2 * $ProjectName$
3 * $ProjectRevision$
4 * -----------------------------------------------------------
5 * $Id$
6 * -----------------------------------------------------------
7 *
8 * $Author$
9 *
10 * Description:
11 *
12 * Copyright 2002-2003 Tor-Einar Jarnbjo
13 * -----------------------------------------------------------
14 *
15 * Change History
16 * -----------------------------------------------------------
17 * $Log$
18 * Revision 1.1 2005/07/11 15:42:36 hcl
19 * Songdb java version, source. only 1.5 compatible
20 *
21 * Revision 1.1.1.1 2004/04/04 22:09:12 shred
22 * First Import
23 *
24 * Revision 1.2 2003/03/16 01:11:12 jarnbjo
25 * no message
26 *
27 *
28 */
29
30package de.jarnbjo.vorbis;
31
32import java.io.IOException;
33
34import de.jarnbjo.util.io.BitInputStream;
35
36abstract class Mapping {
37
38 protected static Mapping createInstance(VorbisStream vorbis, BitInputStream source, SetupHeader header) throws VorbisFormatException, IOException {
39
40 int type=source.getInt(16);
41 switch(type) {
42 case 0:
43 //System.out.println("mapping type 0");
44 return new Mapping0(vorbis, source, header);
45 default:
46 throw new VorbisFormatException("Mapping type "+type+" is not supported.");
47 }
48 }
49
50 protected abstract int getType();
51 protected abstract int[] getAngles();
52 protected abstract int[] getMagnitudes() ;
53 protected abstract int[] getMux();
54 protected abstract int[] getSubmapFloors();
55 protected abstract int[] getSubmapResidues();
56 protected abstract int getCouplingSteps();
57 protected abstract int getSubmaps();
58
59} \ No newline at end of file