diff options
author | 2012-09-15 22:30:30 +0000 | |
---|---|---|
committer | 2012-09-15 22:30:30 +0000 | |
commit | cff1004165c7026532c4809099d4ebca31643cd5 (patch) | |
tree | 745dd217242b32aa6421431ed8bc6271a699f756 /src/emu/sound/ymf262.c | |
parent | 000f9d27eddb3edde72bc289d9d0a9ed678f6fbb (diff) |
Pass 2 of struct modernization.
Diffstat (limited to 'src/emu/sound/ymf262.c')
-rw-r--r-- | src/emu/sound/ymf262.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/sound/ymf262.c b/src/emu/sound/ymf262.c index 19aa511cdbb..c24fd4280bf 100644 --- a/src/emu/sound/ymf262.c +++ b/src/emu/sound/ymf262.c @@ -141,7 +141,7 @@ static FILE * cymfile = NULL; #define OPL3_TYPE_YMF262 (0) /* 36 operators, 8 waveforms */ -typedef struct +struct OPL3_SLOT { UINT32 ar; /* attack rate: AR<<2 */ UINT32 dr; /* decay rate: DR<<2 */ @@ -190,9 +190,9 @@ typedef struct //unsigned char reserved[128-84];//speedup: pump up the struct size to power of 2 unsigned char reserved[128-100];//speedup: pump up the struct size to power of 2 -} OPL3_SLOT; +}; -typedef struct +struct OPL3_CH { OPL3_SLOT SLOT[2]; @@ -215,10 +215,10 @@ typedef struct unsigned char reserved[512-272];//speedup:pump up the struct size to power of 2 -} OPL3_CH; +}; /* OPL3 state */ -typedef struct +struct OPL3 { OPL3_CH P_CH[18]; /* OPL3 chips have 18 channels */ @@ -278,7 +278,7 @@ typedef struct double freqbase; /* frequency base */ attotime TimerBase; /* Timer base time (==sampling time)*/ device_t *device; -} OPL3; +}; |