diff --git a/src/emu/sound/ymf271.c b/src/emu/sound/ymf271.c index 13d5054ec9b..3c7e02a956a 100644 --- a/src/emu/sound/ymf271.c +++ b/src/emu/sound/ymf271.c @@ -46,7 +46,7 @@ static const int fm_tab[16] = { 0, 1, 2, -1, 3, 4, 5, -1, 6, 7, 8, -1, 9, 10, 11, -1 }; static const int pcm_tab[16] = { 0, 4, 8, -1, 12, 16, 20, -1, 24, 28, 32, -1, 36, 40, 44, -1 }; -static INT16 *wavetable[8]; +static INT16 wavetable[8][SIN_LEN]; static double plfo_table[4][8][LFO_LENGTH]; static int alfo_table[4][LFO_LENGTH]; @@ -1528,11 +1528,6 @@ static void init_tables(running_machine &machine) { int i,j; - for (i=0; i < ARRAY_LENGTH(wavetable); i++) - { - wavetable[i] = auto_alloc_array(machine, INT16, SIN_LEN); - } - for (i=0; i < SIN_LEN; i++) { double m = sin( ((i*2)+1) * M_PI / SIN_LEN );