diff options
author | Aaron Giles <aaron@aarongiles.com> | 2008-09-11 15:38:20 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2008-09-11 15:38:20 +0000 |
commit | 0b3ae8f72dade6daeba7ceb30a44cd4756ea1b53 (patch) | |
tree | d10a3be23bc8db52d98d5c927ad8f517a2be8a79 | |
parent | 9b94257dc8bfcdce36bf72d1751b74ee97c7157d (diff) |
C352 cleanups
Remove an unused volume table dating from before the volume was
(correctly) implemented as linear.
Add a tab where appropriate.
-rw-r--r-- | src/emu/sound/c352.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/emu/sound/c352.c b/src/emu/sound/c352.c index 8280602ffec..faa29529ff0 100644 --- a/src/emu/sound/c352.c +++ b/src/emu/sound/c352.c @@ -30,7 +30,7 @@ enum { C352_FLG_KEYOFF = 0x2000, // Keyoff C352_FLG_LOOPTRG = 0x1000, // Loop Trigger C352_FLG_LOOPHIST = 0x0800, // Loop History - C352_FLG_FM = 0x0400, // Frequency Modulation + C352_FLG_FM = 0x0400, // Frequency Modulation C352_FLG_PHASERL = 0x0200, // Rear Left invert phase 180 degrees C352_FLG_PHASEFL = 0x0100, // Front Left invert phase 180 degrees C352_FLG_PHASEFR = 0x0080, // invert phase 180 degrees (e.g. flip sign of sample) @@ -74,8 +74,6 @@ struct c352_info UINT32 c352_rom_length; int sample_rate_base; - INT16 level_table[256]; - long channel_l[2048*2]; long channel_r[2048*2]; long channel_l2[2048*2]; @@ -535,13 +533,6 @@ static void c352_init(struct c352_info *info, int sndindex) state_save_register_item(cname, sndindex, info->c352_ch[i].current_addr); state_save_register_item(cname, sndindex, info->c352_ch[i].pos); } - - for (i = 0; i < 256; i++) - { - double max_level = 255.0; - - info->level_table[255-i] = (int) (pow (10.0, (double) i / 256.0 * -20.0 / 20.0) * max_level); - } } static void *c352_start(const char *tag, int sndindex, int clock, const void *config) |