here it is ... the upload-api, script-server, js2 (javascript phase2) branch merge...
[lhc/web/wiklou.git] / js2 / mwEmbed / binPlayers / omtk-fx / src / as / org / omtk / vorbis / Floor.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 Floor {
25
26 public static const DB_STATIC_TABLE:Vector.<Number> = Vector.<Number>([
27 1.0649863e-07, 1.1341951e-07, 1.2079015e-07, 1.2863978e-07,
28 1.3699951e-07, 1.4590251e-07, 1.5538408e-07, 1.6548181e-07,
29 1.7623575e-07, 1.8768855e-07, 1.9988561e-07, 2.128753e-07,
30 2.2670913e-07, 2.4144197e-07, 2.5713223e-07, 2.7384213e-07,
31 2.9163793e-07, 3.1059021e-07, 3.3077411e-07, 3.5226968e-07,
32 3.7516214e-07, 3.9954229e-07, 4.2550680e-07, 4.5315863e-07,
33 4.8260743e-07, 5.1396998e-07, 5.4737065e-07, 5.8294187e-07,
34 6.2082472e-07, 6.6116941e-07, 7.0413592e-07, 7.4989464e-07,
35 7.9862701e-07, 8.5052630e-07, 9.0579828e-07, 9.6466216e-07,
36 1.0273513e-06, 1.0941144e-06, 1.1652161e-06, 1.2409384e-06,
37 1.3215816e-06, 1.4074654e-06, 1.4989305e-06, 1.5963394e-06,
38 1.7000785e-06, 1.8105592e-06, 1.9282195e-06, 2.0535261e-06,
39 2.1869758e-06, 2.3290978e-06, 2.4804557e-06, 2.6416497e-06,
40 2.8133190e-06, 2.9961443e-06, 3.1908506e-06, 3.3982101e-06,
41 3.6190449e-06, 3.8542308e-06, 4.1047004e-06, 4.3714470e-06,
42 4.6555282e-06, 4.9580707e-06, 5.2802740e-06, 5.6234160e-06,
43 5.9888572e-06, 6.3780469e-06, 6.7925283e-06, 7.2339451e-06,
44 7.7040476e-06, 8.2047000e-06, 8.7378876e-06, 9.3057248e-06,
45 9.9104632e-06, 1.0554501e-05, 1.1240392e-05, 1.1970856e-05,
46 1.2748789e-05, 1.3577278e-05, 1.4459606e-05, 1.5399272e-05,
47 1.6400004e-05, 1.7465768e-05, 1.8600792e-05, 1.9809576e-05,
48 2.1096914e-05, 2.2467911e-05, 2.3928002e-05, 2.5482978e-05,
49 2.7139006e-05, 2.8902651e-05, 3.0780908e-05, 3.2781225e-05,
50 3.4911534e-05, 3.7180282e-05, 3.9596466e-05, 4.2169667e-05,
51 4.4910090e-05, 4.7828601e-05, 5.0936773e-05, 5.4246931e-05,
52 5.7772202e-05, 6.1526565e-05, 6.5524908e-05, 6.9783085e-05,
53 7.4317983e-05, 7.9147585e-05, 8.4291040e-05, 8.9768747e-05,
54 9.5602426e-05, 0.00010181521, 0.00010843174, 0.00011547824,
55 0.00012298267, 0.00013097477, 0.00013948625, 0.00014855085,
56 0.00015820453, 0.00016848555, 0.00017943469, 0.00019109536,
57 0.00020351382, 0.00021673929, 0.00023082423, 0.00024582449,
58 0.00026179955, 0.00027881276, 0.00029693158, 0.00031622787,
59 0.00033677814, 0.00035866388, 0.00038197188, 0.00040679456,
60 0.00043323036, 0.00046138411, 0.00049136745, 0.00052329927,
61 0.00055730621, 0.00059352311, 0.00063209358, 0.00067317058,
62 0.00071691700, 0.00076350630, 0.00081312324, 0.00086596457,
63 0.00092223983, 0.00098217216, 0.0010459992, 0.0011139742,
64 0.0011863665, 0.0012634633, 0.0013455702, 0.0014330129,
65 0.0015261382, 0.0016253153, 0.0017309374, 0.0018434235,
66 0.0019632195, 0.0020908006, 0.0022266726, 0.0023713743,
67 0.0025254795, 0.0026895994, 0.0028643847, 0.0030505286,
68 0.0032487691, 0.0034598925, 0.0036847358, 0.0039241906,
69 0.0041792066, 0.0044507950, 0.0047400328, 0.0050480668,
70 0.0053761186, 0.0057254891, 0.0060975636, 0.0064938176,
71 0.0069158225, 0.0073652516, 0.0078438871, 0.0083536271,
72 0.0088964928, 0.009474637, 0.010090352, 0.010746080,
73 0.011444421, 0.012188144, 0.012980198, 0.013823725,
74 0.014722068, 0.015678791, 0.016697687, 0.017782797,
75 0.018938423, 0.020169149, 0.021479854, 0.022875735,
76 0.024362330, 0.025945531, 0.027631618, 0.029427276,
77 0.031339626, 0.033376252, 0.035545228, 0.037855157,
78 0.040315199, 0.042935108, 0.045725273, 0.048696758,
79 0.051861348, 0.055231591, 0.058820850, 0.062643361,
80 0.066714279, 0.071049749, 0.075666962, 0.080584227,
81 0.085821044, 0.091398179, 0.097337747, 0.10366330,
82 0.11039993, 0.11757434, 0.12521498, 0.13335215,
83 0.14201813, 0.15124727, 0.16107617, 0.17154380,
84 0.18269168, 0.19456402, 0.20720788, 0.22067342,
85 0.23501402, 0.25028656, 0.26655159, 0.28387361,
86 0.30232132, 0.32196786, 0.34289114, 0.36517414,
87 0.38890521, 0.41417847, 0.44109412, 0.46975890,
88 0.50028648, 0.53279791, 0.56742212, 0.60429640,
89 0.64356699, 0.68538959, 0.72993007, 0.77736504,
90 0.82788260, 0.88168307, 0.9389798, 1.0]);
91
92 public static function createInstance(source:BitByteArray, header:SetupHeader):Floor {
93
94 var type:int = source.readUnsignedBitwiseInt(16);
95
96 switch (type) {
97 case 0:
98 return new Floor0(source, header);
99 case 1:
100 return new Floor1(source, header);
101 default:
102 throw new Error("Floor type " + type + " is not supported.");
103 }
104 }
105
106 public function get type():int {
107 throw new IllegalOperationError("operation not implemented");
108 }
109
110 public function decodeFloor(vorbis:VorbisStream, source:BitByteArray):Floor1 {
111 throw new IllegalOperationError("operation not implemented");
112 }
113
114 public function computeFloor(vector:Vector.<Number>):void {
115 throw new IllegalOperationError("operation not implemented");
116 }
117
118
119 }
120
121
122 }