Debian Codegraph @

android/app/jni/extern/vgsound_emu-modified/vgsound_emu/src/msm6295/README.md

raw
1 # OKI MSM6295
2
3 ## Summary
4
5 - 4 voice Dialogic ADPCM
6 - total accessible memory: 256 KByte
7 - Clock divider via SS pin
8
9 ## Source code
10
11 - msm6295.hpp: Base header
12 - msm6295.cpp: Source emulation core
13
14 ### Dependencies
15
16 - vox.hpp: Dialogic ADPCM decoder header
17 - vox.cpp: Dialogic ADPCM decoder source
18
19 ## Description
20
21 It is 4 channel ADPCM playback chip from OKI semiconductor. It was becomes de facto standard for ADPCM playback in arcade machine, due to cost performance.
22
23 The chip itself is pretty barebone: there is no "register" in chip. It can't control volume and pitch in currently playing channels, only stopable them. And volume is must be determined at playback start command.
24
25 ## Command format
26
27 Playback command (2 byte):
28
29 ```
30 Byte Bit Description
31 76543210
32 0 1xxxxxxx Phrase select (Header stored in ROM)
33 1 x000---- Play channel 4
34 0x00---- Play channel 3
35 00x0---- Play channel 2
36 000x---- Play channel 1
37 ----xxxx Volume
38 ----0000 0.0dB
39 ----0001 -3.2dB
40 ----0010 -6.0dB
41 ----0011 -9.2dB
42 ----0100 -12.0dB
43 ----0101 -14.5dB
44 ----0110 -18.0dB
45 ----0111 -20.5dB
46 ----1000 -24.0dB
47 ```
48
49 Suspend command (1 byte):
50
51 ```
52 Byte Bit Description
53 76543210
54 0 0x------ Suspend channel 4
55 0-x----- Suspend channel 3
56 0--x---- Suspend channel 2
57 0---x--- Suspend channel 1
58 ```
59
60 ## Frequency calculation
61
62 ```
63 if (SS) then
64 Frequency = Input clock / 165
65 else then
66 Frequency = Input clock / 132
67 ```