Debian Codegraph @

mednafen/okiadpcm.cpp

raw symbols SCIP
1 /* Mednafen - Multi-system Emulator
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 */
17
18 #include "mednafen.h"
19 #include "okiadpcm.h"
20 #include <math.h>
21
22 const int OKIADPCM_StepSizes[49] =
23 {
24 // These can also be generated like:
25 // double start = 16;
26 // for(int x = 0; x < 49; x++)
27 // {
28 // printf("%d, ", (int)start);
29 // start *= 1.1;
30 // }
31 16, 17, 19, 21, 23, 25, 28, 31, 34, 37, 41, 45, 50,
32 55, 60, 66, 73, 80, 88, 97, 107, 118, 130, 143, 157,
33 173, 190, 209, 230, 253, 279, 307, 337, 371, 408, 449,
34 494, 544, 598, 658, 724, 796, 876, 963, 1060, 1166, 1282, 1411, 1552,
35 };
36
37 const int OKIADPCM_StepIndexDeltas[16] =
38 {
39 -1, -1, -1, -1, 2, 4, 6, 8,
40 -1, -1, -1, -1, 2, 4, 6, 8
41 };
42
43 const int32 OKIADPCM_DeltaTable[49][16] =
44 {
45 #ifndef OKIADPCM_GENERATE_DELTATABLE
46 #include "okiadpcm-deltatable.h"
47 #endif
48 };
49