diff options
author | 2008-12-08 06:53:40 +0000 | |
---|---|---|
committer | 2008-12-08 06:53:40 +0000 | |
commit | b24198a1cd5afaed90b3a2a6f8d11935fc40e592 (patch) | |
tree | e10b8605798c6ddb6f59636f7cdb9c7c0d9a9369 /src/emu/sound/aicalfo.c | |
parent | 60febeb3d9f026b4a8344735a551e31770394f77 (diff) |
Hi mamedev,
This is a reworked/expanded version of the patch I sent yesterday.
This one is split into three parts:
1. This introduces function macros for SAMPLES_START,
CUSTOM_{START,STOP,RESET}, and ANTIC_RENDERER.
2. This introduces running_machine *machine throughout MAME.
Principally it adds running_machine *machine = Machine to the top of
functions, but in some static functions the parameter is added
directly. Some similar changes in 99xxcore.h, v9938.c, v9938mod.c,
galaxold.c, psx.c, taito_l.c are also made to eliminate Machine
params. No global API is changed.
3. This changes the APIs introduced in the first part to pass device
or space as appropriate. A few similar changes in some other global
apis are made as well.
The net result of this sequence of patches is to remove 40% of the
Machine references and 27 deprecat.h includes.
~aa
Diffstat (limited to 'src/emu/sound/aicalfo.c')
-rw-r--r-- | src/emu/sound/aicalfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/sound/aicalfo.c b/src/emu/sound/aicalfo.c index 5fe15ecaabe..d9e8b07f77b 100644 --- a/src/emu/sound/aicalfo.c +++ b/src/emu/sound/aicalfo.c @@ -34,7 +34,7 @@ static const float PSCALE[8]={0.0f,7.0f,13.5f,27.0f,55.0f,112.0f,230.0f,494.0f}; static int PSCALES[8][256]; static int ASCALES[8][256]; -static void AICALFO_Init(void) +static void AICALFO_Init(running_machine *machine) { int i,s; for(i=0;i<256;++i) @@ -82,7 +82,7 @@ static void AICALFO_Init(void) //noise //a=lfo_noise[i]; - a=mame_rand(Machine)&0xff; + a=mame_rand(machine)&0xff; p=128-a; ALFO_NOI[i]=a; PLFO_NOI[i]=p; |