* moved "binPlayers" into libEmbedVideo (more modular folder layout)
[lhc/web/wiklou.git] / js2 / mwEmbed / libEmbedVideo / binPlayers / omtk-fx / src / as / org / omtk / vorbis / Mapping.as
1 /*
2
3 Copyright 2008 Tor-Einar Jarnbjo
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16
17 */
18
19 package org.omtk.vorbis {
20
21 import flash.errors.IllegalOperationError;
22 import org.omtk.util.BitByteArray;
23
24 public class Mapping {
25
26 public static function createInstance(stream:VorbisStream, source:BitByteArray, header:SetupHeader):Mapping {
27
28 var type:int = source.readUnsignedBitwiseInt(16);
29 switch (type) {
30 case 0:
31 return new Mapping0(stream, source, header);
32 default:
33 throw new Error("Mapping type " + type + " is not supported.");
34 }
35
36 }
37
38 public function get type():int {
39 throw new IllegalOperationError("not implemented");
40 }
41
42 public function get couplingSteps():int {
43 throw new IllegalOperationError("not implemented");
44 }
45
46 public function get submaps():int {
47 throw new IllegalOperationError("not implemented");
48 }
49
50 public function get angles():Vector.<int> {
51 throw new IllegalOperationError("not implemented");
52 }
53
54 public function get magnitudes():Vector.<int> {
55 throw new IllegalOperationError("not implemented");
56 }
57
58 public function get mux():Vector.<int> {
59 throw new IllegalOperationError("not implemented");
60 }
61
62 public function get submapFloors():Vector.<int> {
63 throw new IllegalOperationError("not implemented");
64 }
65
66 public function get submapResidues():Vector.<int> {
67 throw new IllegalOperationError("not implemented");
68 }
69
70
71 }
72
73 }