summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/sn76496.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-12-10 06:31:23 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-12-10 06:31:23 +0000
commite2a760bcbd28caba2f1ef8dca7818e80dd9d4b83 (patch)
tree011dd4d2928ea6f4aafed569b8d6be0c44f014ca /src/emu/sound/sn76496.c
parentb98c709380e0a52f963d497eb619a90214785a2c (diff)
From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Tuesday, December 09, 2008 8:13 PM To: submit@mamedev.org Cc: atariace@hotmail.com Subject: [patch] Add device parameter to stream_create() Hi mamedev, This patch adds the sound device to the parameters passed to stream_create so that the global Machine can be removed from streams.c. It assumes my previous patch which added CUSTOM_START and SAMPLES_START has been applied. ~aa
Diffstat (limited to 'src/emu/sound/sn76496.c')
-rw-r--r--src/emu/sound/sn76496.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/sound/sn76496.c b/src/emu/sound/sn76496.c
index 3d40278d7c6..b6a9ea92961 100644
--- a/src/emu/sound/sn76496.c
+++ b/src/emu/sound/sn76496.c
@@ -278,12 +278,12 @@ static void SN76496_set_gain(struct SN76496 *R,int gain)
-static int SN76496_init(struct SN76496 *R,int clock)
+static int SN76496_init(const device_config *device, int clock, struct SN76496 *R)
{
int sample_rate = clock/16;
int i;
- R->Channel = stream_create(0,1, sample_rate,R,SN76496Update);
+ R->Channel = stream_create(device,0,1,sample_rate,R,SN76496Update);
R->SampleRate = sample_rate;
@@ -321,7 +321,7 @@ static void *generic_start(const device_config *device, int clock, int feedbackm
chip = auto_malloc(sizeof(*chip));
memset(chip, 0, sizeof(*chip));
- if (SN76496_init(chip,clock) != 0)
+ if (SN76496_init(device,clock,chip) != 0)
return NULL;
SN76496_set_gain(chip, 0);