mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
(MESS) upd1771: replace waveforms with waveforms extracted from upd1771c-017 internal rom. [Lord Nightmare, plgdavid]
This commit is contained in:
parent
7977b2a8f6
commit
12ea6b4ca5
1 changed files with 18 additions and 14 deletions
|
@ -174,22 +174,26 @@
|
|||
#define LOG 0
|
||||
|
||||
/*
|
||||
Each of the 8 waveforms have been sampled at 192kHz using period 0xFF,
|
||||
filtered, and each of the 32 levels have been calculated with averages on around 10 samples
|
||||
(removing the transition samples) then quantized to int8_t's.
|
||||
We are not clear on the exact DAC details yet, especially with regards to volume changes.
|
||||
|
||||
External AC coupling is assumed in the use of this DAC, so we will center the 8bit data using a signed container
|
||||
Each of the 8 waveforms have been extracted from the uPD1771c-017 internal
|
||||
ROM, from offset 0x1fd (start of first waveform) to offset 0x2fc (end of
|
||||
last waveform).
|
||||
(note: given test mode dumping offset non-clarity it may be 0x200-0x2ff)
|
||||
The waveforms are stored in an 8-bit sign-magnitude format, so if in ROM the
|
||||
upper bit is 0x80, invert the lower 7 bits to get the 2's complement result
|
||||
seen here.
|
||||
Note that only the last 4 waveforms appear to have been intended for use as
|
||||
waveforms; the first four look as if they're playing back a piece of code as
|
||||
wave data.
|
||||
*/
|
||||
const char WAVEFORMS[8][32]={
|
||||
{ -5, -5, -5,-117,-116, -53, -10, 127, 120, 108, 97, -121,-121,-121, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4,-119,-119,-118, -2, -2, -2, -2, -2},
|
||||
{ 6, -21, -1, -41, -1, 25, -35, -35, -1, -16, 34, 29, -37, -30, -33, -20, 38, -15, 50, -20, -20, -15, 7, -20, 77, -15, -37, 69, 93, -21, -38, -37},
|
||||
{ -11, -4, -11, 51, -9, -11, -11, 84, 87,-112, 44, 102, -86,-112, 35, 103, -12, 51, -10, -12, -12, -9, -12, 13, -11, -44, 25, 103, -12, -5, -90,-101},
|
||||
{ 40, 98, 31, 98, -1, 13, 58, 3, -18, 45, -5, -13, -5, -13, -5, -13, -5, -13, -5, -13, -10, -15,-121, 5, -17, 45,-128, 8, -16, -12, -16, -9},
|
||||
{ -53,-101,-121,-128,-113, -77, -34, 5, 26, 63, 97, 117, 119, 119, 115, 99, 54, 13, -13, -11, -2, 3, 31, 52, 62, 74, 60, 51, 38, 22, 8, -14},
|
||||
{ -86,-128, -60, 3, 65, 101, 119, 44, 37, 41, 51, 53, 55, 58, 58, 29, -12, 74, 82, 77, 59, 113, 52, 21, 24, 34, 39, 45, 48, 48, 48, -13},
|
||||
{ -15, -18, -46, -67, -95,-111,-117,-124,-128,-123,-116, -105, -89, -72, -50, -21, 2, 16, 46, 76, 95, 111, 118, 119, 119, 119, 117, 110, 97, 75, 47, 18},
|
||||
{ -84,-121,-128,-105, -51, 7, 38, 66, 93, 97, 93, 88, 89, 96, 102, 111, 116, 118, 118, 119, 118, 118, 117, 117, 118, 118, 117, 117, 117, 115, 85, -14}
|
||||
{ 0, 0,-123,-123, -61, -23, 125, 107, 94, 83,-128,-128,-128, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0,-128,-128,-128, 0, 0, 0, 0, 0, 0},
|
||||
{ 37, 16, 32, -21, 32, 52, 4, 4, 33, 18, 60, 56, 0, 8, 5, 16, 65, 19, 69, 16, -2, 19, 37, 16, 97, 19, 0, 87, 127, -3, 1, 2},
|
||||
{ 0, 8, 1, 52, 4, 0, 0, 77, 81,-109, 47, 97, -83,-109, 38, 97, 0, 52, 4, 0, 1, 4, 1, 22, 2, -46, 33, 97, 0, 8, -85, -99},
|
||||
{ 47, 97, 40, 97, -3, 25, 64, 17, 0, 52, 12, 5, 12, 5, 12, 5, 12, 5, 12, 5, 8, 4,-114, 19, 0, 52,-122, 21, 2, 5, 0, 8},
|
||||
{ -52, -96,-118,-128,-111, -74, -37, -5, 31, 62, 89, 112, 127, 125, 115, 93, 57, 23, 0, -16, -8, 15, 37, 54, 65, 70, 62, 54, 43, 31, 19, 0},
|
||||
{ -81,-128, -61, 13, 65, 93, 127, 47, 41, 44, 52, 55, 56, 58, 58, 34, 0, 68, 76, 72, 61, 108, 55, 29, 32, 39, 43, 49, 50, 51, 51, 0},
|
||||
{ -21, -45, -67, -88,-105,-114,-122,-128,-123,-116,-103, -87, -70, -53, -28, -9, 22, 46, 67, 86, 102, 114, 123, 125, 127, 117, 104, 91, 72, 51, 28, 0},
|
||||
{ -78,-118,-128,-102, -54, -3, 40, 65, 84, 88, 84, 80, 82, 88, 94, 103, 110, 119, 122, 125, 122, 122, 121, 123, 125, 126, 127, 127, 125, 118, 82, 0}
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue