summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/okim6295.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/okim6295.c')
-rw-r--r--src/emu/sound/okim6295.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/emu/sound/okim6295.c b/src/emu/sound/okim6295.c
index 6e572b3d093..89e8f231c84 100644
--- a/src/emu/sound/okim6295.c
+++ b/src/emu/sound/okim6295.c
@@ -320,13 +320,10 @@ static void okim6295_state_save_register(struct okim6295 *info, const device_con
static SND_START( okim6295 )
{
const okim6295_interface *intf = device->static_config;
- struct okim6295 *info;
+ struct okim6295 *info = device->token;
int voice;
int divisor = intf->pin7 ? 132 : 165;
- info = auto_malloc(sizeof(*info));
- memset(info, 0, sizeof(*info));
-
compute_tables();
info->command = -1;
@@ -351,7 +348,7 @@ static SND_START( okim6295 )
okim6295_state_save_register(info, device);
/* success */
- return info;
+ return DEVICE_START_OK;
}
@@ -662,6 +659,7 @@ SND_GET_INFO( okim6295 )
switch (state)
{
/* --- the following bits of info are returned as 64-bit signed integers --- */
+ case SNDINFO_INT_TOKEN_BYTES: info->i = sizeof(struct okim6295); 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( okim6295 ); break;