diff options
Diffstat (limited to 'src/emu/sound/okim6376.c')
-rw-r--r-- | src/emu/sound/okim6376.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/emu/sound/okim6376.c b/src/emu/sound/okim6376.c index c5450043b3d..129ad957d7e 100644 --- a/src/emu/sound/okim6376.c +++ b/src/emu/sound/okim6376.c @@ -289,13 +289,10 @@ static void okim6376_state_save_register(struct okim6376 *info, const device_con static SND_START( okim6376 ) { - struct okim6376 *info; + struct okim6376 *info = device->token; int voice; int divisor = 165; - info = auto_malloc(sizeof(*info)); - memset(info, 0, sizeof(*info)); - compute_tables(); info->command = -1; @@ -316,7 +313,7 @@ static SND_START( okim6376 ) okim6376_state_save_register(info, device); /* success */ - return info; + return DEVICE_START_OK; } @@ -599,6 +596,7 @@ SND_GET_INFO( okim6376 ) switch (state) { /* --- the following bits of info are returned as 64-bit signed integers --- */ + case SNDINFO_INT_TOKEN_BYTES: info->i = sizeof(struct okim6376); break; /* --- the following bits of info are returned as pointers to data or functions --- */ case SNDINFO_PTR_SET_INFO: info->set_info = SND_SET_INFO_NAME( okim6376 ); break; |