summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/gamepock.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2013-04-12 12:29:10 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2013-04-12 12:29:10 +0000
commit82681f1bb11f95ce86e6c9fd4d44724d3a0209cd (patch)
tree41f095d88b6779036f179ca03f635a83dd76afa0 /src/mess/machine/gamepock.c
parent99c1df0d51dd307fa2e864e93ff6bfbc39d47ccc (diff)
speaker tag lookup removal, also no need to use universal tag, since easier now to follow (nw)
Diffstat (limited to 'src/mess/machine/gamepock.c')
-rw-r--r--src/mess/machine/gamepock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mess/machine/gamepock.c b/src/mess/machine/gamepock.c
index 986eb63ca52..207b6fdd514 100644
--- a/src/mess/machine/gamepock.c
+++ b/src/mess/machine/gamepock.c
@@ -214,10 +214,10 @@ UINT32 gamepock_state::screen_update_gamepock(screen_device &screen, bitmap_ind1
/* This is called whenever the T0 pin switches state */
int gamepock_io_callback( device_t *device, int ioline, int state )
{
- device_t *speaker = device->machine().device(SPEAKER_TAG);
+ gamepock_state *driver_state = device->machine().driver_data<gamepock_state>();
if ( ioline == UPD7810_TO )
{
- speaker_level_w(speaker, state & 1 );
+ speaker_level_w(driver_state->m_speaker, state & 1 );
}
return 0;
}