summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/m10.c
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2014-09-04 17:49:30 +0000
committer Ivan Vangelista <mesgnet@yahoo.it>2014-09-04 17:49:30 +0000
commit016990765fc2125c0e3f07e65ac3653345b345d4 (patch)
treef34de5167dafbaadd6ab554eaccb1cd9a3f97cf2 /src/mame/drivers/m10.c
parent3092a095e58b288b0478b51ba3794b6591b07dfd (diff)
samples_device: converted to use inline config and delegates. Will probably need clean compile. (nw)
Diffstat (limited to 'src/mame/drivers/m10.c')
-rw-r--r--src/mame/drivers/m10.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/mame/drivers/m10.c b/src/mame/drivers/m10.c
index 4b126a8b8e3..fab05c611cb 100644
--- a/src/mame/drivers/m10.c
+++ b/src/mame/drivers/m10.c
@@ -797,13 +797,6 @@ static const char *const m10_sample_names[] =
0
};
-
-static const samples_interface m10_samples_interface =
-{
- 6, /* 6 channels */
- m10_sample_names
-};
-
/*************************************
*
* Machine driver
@@ -856,7 +849,9 @@ static MACHINE_CONFIG_START( m10, m10_state )
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SAMPLES_ADD("samples", m10_samples_interface)
+ MCFG_SOUND_ADD("samples", SAMPLES, 0)
+ MCFG_SAMPLES_CHANNELS(6)
+ MCFG_SAMPLES_NAMES(m10_sample_names)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MACHINE_CONFIG_END
@@ -897,7 +892,9 @@ static MACHINE_CONFIG_START( m15, m10_state )
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SAMPLES_ADD("samples", m10_samples_interface)
+ MCFG_SOUND_ADD("samples", SAMPLES, 0)
+ MCFG_SAMPLES_CHANNELS(6)
+ MCFG_SAMPLES_NAMES(m10_sample_names)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MACHINE_CONFIG_END