summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound
diff options
context:
space:
mode:
author Jonathan Gevaryahu <Lord-Nightmare@users.noreply.github.com>2012-11-11 19:14:21 +0000
committer Jonathan Gevaryahu <Lord-Nightmare@users.noreply.github.com>2012-11-11 19:14:21 +0000
commite25a78af0578da940dc29a0b24f7d3b1ea279716 (patch)
treea67a8761af702691afb646d8044699eef87f0d4b /src/emu/sound
parent210d5b73d4c8b521eb6c0000bf87b5f6106d95fa (diff)
tms5220&friends: Change chirp waveform to match the chip more closely,
acoustically. This will require completion of a pending decap to verify as correct, but it certainly sounds better. [Lord Nightmare]
Diffstat (limited to 'src/emu/sound')
-rw-r--r--src/emu/sound/tms5110r.c44
1 files changed, 34 insertions, 10 deletions
diff --git a/src/emu/sound/tms5110r.c b/src/emu/sound/tms5110r.c
index 4797a134ff8..959e73d4af8 100644
--- a/src/emu/sound/tms5110r.c
+++ b/src/emu/sound/tms5110r.c
@@ -382,13 +382,21 @@ static const struct tms5100_coeffs tms5200_coeff =
{ -190, -133, -73, -10, 53, 115, 173, 227 },
},
/* Chirp table */
+ /*
{ 0, 42, -44, 50, -78, 18, 37, 20,
2, -31, -59, 2, 95, 90, 5, 15,
38, -4, -91,-91, -42,-35,-36, -4,
37, 43, 34, 33, 15, -1, -8,-18,
-19,-17, -9,-10, -6, 0, 3, 2,
1, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0 },
+ 0, 0, 0, 0 },*/
+ { 0,127,127, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0 },
/* interpolation coefficients */
{ 0, 3, 3, 3, 2, 2, 1, 1 }
};
@@ -451,13 +459,21 @@ static const struct tms5100_coeffs tms5220_coeff =
{ -205, -132, -59, 14, 87, 160, 234, 307 },
},
/* Chirp table */
+ /*
{ 0, 42, -44, 50, -78, 18, 37, 20,
2, -31, -59, 2, 95, 90, 5, 15,
38, -4, -91,-91, -42,-35,-36, -4,
37, 43, 34, 33, 15, -1, -8,-18,
-19,-17, -9,-10, -6, 0, 3, 2,
1, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0 },
+ 0, 0, 0, 0 },*/
+ { 0,127,127, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0 },
/* interpolation coefficients */
{ 0, 3, 3, 3, 2, 2, 1, 1 }
};
@@ -524,13 +540,21 @@ static const struct tms5100_coeffs tms5220c_coeff =
{ -13106/64, -8425/64, -3744/64, 936/64, 5617/64, 10298/64, 14979/64, 19660/64 },
},
/* Chirp table */
+ /*
{ 0, 42, -44, 50, -78, 18, 37, 20,
2, -31, -59, 2, 95, 90, 5, 15,
38, -4, -91,-91, -42,-35,-36, -4,
37, 43, 34, 33, 15, -1, -8,-18,
-19,-17, -9,-10, -6, 0, 3, 2,
1, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0 },
+ 0, 0, 0, 0 },*/
+ { 0,127,127, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0 },
/* interpolation coefficients */
{ 0, 3, 3, 3, 2, 2, 1, 1 }
};
@@ -609,13 +633,13 @@ static const struct tms5100_coeffs vlm5030_coeff =
{ 0, 128, 256, 384,-512,-384,-256,-128 },
},
/* Chirp table */
- { 0, 42, -44, 50, -78, 18, 37, 20,
- 2, -31, -59, 2, 95, 90, 5, 15,
- 38, -4, -91,-91, -42,-35,-36, -4,
- 37, 43, 34, 33, 15, -1, -8,-18,
- -19,-17, -9,-10, -6, 0, 3, 2,
- 1, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0 },
+ { 0,127,127, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0 },
/* interpolation coefficients */
{ 3, 3, 3, 2, 2, 1, 1, 0 }
};