diff options
Diffstat (limited to 'src/emu/sound/ay8910.c')
-rw-r--r-- | src/emu/sound/ay8910.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/emu/sound/ay8910.c b/src/emu/sound/ay8910.c index 3245e9e4b04..e42d04af8b8 100644 --- a/src/emu/sound/ay8910.c +++ b/src/emu/sound/ay8910.c @@ -333,9 +333,8 @@ INLINE void build_3D_table(double rl, const ay_ym_param *par, const ay_ym_param int j, j1, j2, j3, e, indx; double rt, rw, n; double min = 10.0, max = 0.0; - double *temp; - temp = global_alloc_array(double, 8*32*32*32); + dynamic_array<double> temp(8*32*32*32); for (e=0; e < 8; e++) for (j1=0; j1 < 32; j1++) @@ -381,8 +380,6 @@ INLINE void build_3D_table(double rl, const ay_ym_param *par, const ay_ym_param } /* for (e=0;e<16;e++) printf("%d %d\n",e<<10, tab[e<<10]); */ - - global_free(temp); } INLINE void build_single_table(double rl, const ay_ym_param *par, int normalize, INT32 *tab, int zero_is_off) |