1 /*
2  * fkiss sound routine u-law conversion table
3  * written by yav <yav@bigfoot.com>
4  *
5  * This table is based on Linux Sound Driver ulaw.h.
6  * Original written by Hannu Savolainen <hsavolai@cs.helsinki.fi>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */
22 
23 static unsigned char ulaw_dsp[] = {
24      3,    7,   11,   15,   19,   23,   27,   31,
25     35,   39,   43,   47,   51,   55,   59,   63,
26     66,   68,   70,   72,   74,   76,   78,   80,
27     82,   84,   86,   88,   90,   92,   94,   96,
28     98,   99,  100,  101,  102,  103,  104,  105,
29    106,  107,  108,  109,  110,  111,  112,  113,
30    113,  114,  114,  115,  115,  116,  116,  117,
31    117,  118,  118,  119,  119,  120,  120,  121,
32    121,  121,  122,  122,  122,  122,  123,  123,
33    123,  123,  124,  124,  124,  124,  125,  125,
34    125,  125,  125,  125,  126,  126,  126,  126,
35    126,  126,  126,  126,  127,  127,  127,  127,
36    127,  127,  127,  127,  127,  127,  127,  127,
37    128,  128,  128,  128,  128,  128,  128,  128,
38    128,  128,  128,  128,  128,  128,  128,  128,
39    128,  128,  128,  128,  128,  128,  128,  128,
40    253,  249,  245,  241,  237,  233,  229,  225,
41    221,  217,  213,  209,  205,  201,  197,  193,
42    190,  188,  186,  184,  182,  180,  178,  176,
43    174,  172,  170,  168,  166,  164,  162,  160,
44    158,  157,  156,  155,  154,  153,  152,  151,
45    150,  149,  148,  147,  146,  145,  144,  143,
46    143,  142,  142,  141,  141,  140,  140,  139,
47    139,  138,  138,  137,  137,  136,  136,  135,
48    135,  135,  134,  134,  134,  134,  133,  133,
49    133,  133,  132,  132,  132,  132,  131,  131,
50    131,  131,  131,  131,  130,  130,  130,  130,
51    130,  130,  130,  130,  129,  129,  129,  129,
52    129,  129,  129,  129,  129,  129,  129,  129,
53    128,  128,  128,  128,  128,  128,  128,  128,
54    128,  128,  128,  128,  128,  128,  128,  128,
55    128,  128,  128,  128,  128,  128,  128,  128,
56 };
57