mirror of
https://github.com/holub/mame
synced 2025-05-28 16:43:04 +03:00
Some more structure/naming updates of sound cores.
FWIW, I first check for variables named name_interface and rename them as name_cofig, so they don't conflict with the new interface names. struct YMF262interface to ymf262_interface struct YM2151interface to ym2151_interface struct YM2203interface to ym2203_interface struct YM2608interface to ym2608_interface struct YM2610interface to ym2610_interface struct YM2612interface to ym2612_interface struct YM3812interface to ym3812_interface struct Y8950interface to y8950_interface struct YM3526interface to ym3526_interface struct TMS5110interface to tms5110_interface struct TMS5220interface to tms5220_interface struct AICAinterface to aica_interface
This commit is contained in:
parent
4bc7e64b46
commit
e6cf588405
@ -19,7 +19,7 @@ struct ym2151_info
|
||||
sound_stream * stream;
|
||||
emu_timer * timer[2];
|
||||
void * chip;
|
||||
const struct YM2151interface *intf;
|
||||
const ym2151_interface *intf;
|
||||
};
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ static STATE_POSTLOAD( ym2151_postload )
|
||||
|
||||
static void *ym2151_start(const char *tag, int sndindex, int clock, const void *config)
|
||||
{
|
||||
static const struct YM2151interface dummy = { 0 };
|
||||
static const ym2151_interface dummy = { 0 };
|
||||
struct ym2151_info *info;
|
||||
int rate;
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
#ifndef YM2151INTF_H
|
||||
#define YM2151INTF_H
|
||||
|
||||
struct YM2151interface
|
||||
typedef struct _ym2151_interface ym2151_interface;
|
||||
struct _ym2151_interface
|
||||
{
|
||||
void (*irqhandler)(running_machine *machine, int irq);
|
||||
write8_machine_func portwritehandler;
|
||||
|
@ -12,7 +12,7 @@ struct ym2203_info
|
||||
emu_timer * timer[2];
|
||||
void * chip;
|
||||
void * psg;
|
||||
const struct YM2203interface *intf;
|
||||
const ym2203_interface *intf;
|
||||
};
|
||||
|
||||
|
||||
@ -107,7 +107,7 @@ static STATE_POSTLOAD( ym2203_postload )
|
||||
|
||||
static void *ym2203_start(const char *tag, int sndindex, int clock, const void *config)
|
||||
{
|
||||
static const struct YM2203interface generic_2203 =
|
||||
static const ym2203_interface generic_2203 =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -116,7 +116,7 @@ static void *ym2203_start(const char *tag, int sndindex, int clock, const void *
|
||||
},
|
||||
NULL
|
||||
};
|
||||
const struct YM2203interface *intf = config ? config : &generic_2203;
|
||||
const ym2203_interface *intf = config ? config : &generic_2203;
|
||||
struct ym2203_info *info;
|
||||
int rate = clock/72; /* ??? */
|
||||
|
||||
|
@ -3,7 +3,8 @@
|
||||
|
||||
#include "ay8910.h"
|
||||
|
||||
struct YM2203interface
|
||||
typedef struct _ym2203_interface ym2203_interface;
|
||||
struct _ym2203_interface
|
||||
{
|
||||
const ay8910_interface ay8910_intf;
|
||||
void (*handler)(running_machine *machine, int irq);
|
||||
|
@ -24,7 +24,7 @@ struct ym2608_info
|
||||
emu_timer * timer[2];
|
||||
void * chip;
|
||||
void * psg;
|
||||
const struct YM2608interface *intf;
|
||||
const ym2608_interface *intf;
|
||||
};
|
||||
|
||||
|
||||
@ -120,7 +120,7 @@ static STATE_POSTLOAD( ym2608_postload )
|
||||
|
||||
static void *ym2608_start(const char *tag, int sndindex, int clock, const void *config)
|
||||
{
|
||||
static const struct YM2608interface generic_2608 =
|
||||
static const ym2608_interface generic_2608 =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT | AY8910_SINGLE_OUTPUT,
|
||||
@ -129,7 +129,7 @@ static void *ym2608_start(const char *tag, int sndindex, int clock, const void *
|
||||
},
|
||||
NULL
|
||||
};
|
||||
const struct YM2608interface *intf = config ? config : &generic_2608;
|
||||
const ym2608_interface *intf = config ? config : &generic_2608;
|
||||
int rate = clock/72;
|
||||
void *pcmbufa;
|
||||
int pcmsizea;
|
||||
|
@ -4,7 +4,8 @@
|
||||
#include "fm.h"
|
||||
#include "ay8910.h"
|
||||
|
||||
struct YM2608interface
|
||||
typedef struct _ym2608_interface ym2608_interface;
|
||||
struct _ym2608_interface
|
||||
{
|
||||
const ay8910_interface ay8910_intf;
|
||||
void ( *handler )( running_machine *machine, int irq ); /* IRQ handler for the YM2608 */
|
||||
|
@ -25,7 +25,7 @@ struct ym2610_info
|
||||
emu_timer * timer[2];
|
||||
void * chip;
|
||||
void * psg;
|
||||
const struct YM2610interface *intf;
|
||||
const ym2610_interface *intf;
|
||||
};
|
||||
|
||||
|
||||
@ -122,14 +122,14 @@ static STATE_POSTLOAD( ym2610_postload )
|
||||
|
||||
static void *ym2610_start(const char *tag, int sndindex, int clock, const void *config)
|
||||
{
|
||||
static const struct YM2610interface generic_2610 = { 0 };
|
||||
static const ym2610_interface generic_2610 = { 0 };
|
||||
static const ay8910_interface generic_ay8910 =
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT | AY8910_SINGLE_OUTPUT,
|
||||
AY8910_DEFAULT_LOADS,
|
||||
NULL, NULL, NULL, NULL
|
||||
};
|
||||
const struct YM2610interface *intf = config ? config : &generic_2610;
|
||||
const ym2610_interface *intf = config ? config : &generic_2610;
|
||||
int rate = clock/72;
|
||||
void *pcmbufa,*pcmbufb;
|
||||
int pcmsizea,pcmsizeb;
|
||||
@ -188,14 +188,14 @@ static void ym2610b_stream_update(void *param, stream_sample_t **inputs, stream_
|
||||
|
||||
static void *ym2610b_start(const char *tag, int sndindex, int clock, const void *config)
|
||||
{
|
||||
static const struct YM2610interface generic_2610 = { 0 };
|
||||
static const ym2610_interface generic_2610 = { 0 };
|
||||
static const ay8910_interface generic_ay8910 =
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT | AY8910_SINGLE_OUTPUT,
|
||||
AY8910_DEFAULT_LOADS,
|
||||
NULL, NULL, NULL, NULL
|
||||
};
|
||||
const struct YM2610interface *intf = config ? config : &generic_2610;
|
||||
const ym2610_interface *intf = config ? config : &generic_2610;
|
||||
int rate = clock/72;
|
||||
void *pcmbufa,*pcmbufb;
|
||||
int pcmsizea,pcmsizeb;
|
||||
|
@ -3,7 +3,8 @@
|
||||
|
||||
#include "fm.h"
|
||||
|
||||
struct YM2610interface
|
||||
typedef struct _ym2610_interface ym2610_interface;
|
||||
struct _ym2610_interface
|
||||
{
|
||||
void ( *handler )( running_machine *machine, int irq ); /* IRQ handler for the YM2610 */
|
||||
};
|
||||
|
@ -23,7 +23,7 @@ struct ym2612_info
|
||||
sound_stream * stream;
|
||||
emu_timer * timer[2];
|
||||
void * chip;
|
||||
const struct YM2612interface *intf;
|
||||
const ym2612_interface *intf;
|
||||
};
|
||||
|
||||
/*------------------------- TM2612 -------------------------------*/
|
||||
@ -89,7 +89,7 @@ static STATE_POSTLOAD( ym2612_postload )
|
||||
|
||||
static void *ym2612_start(const char *tag, int sndindex, int clock, const void *config)
|
||||
{
|
||||
static const struct YM2612interface dummy = { 0 };
|
||||
static const ym2612_interface dummy = { 0 };
|
||||
struct ym2612_info *info;
|
||||
int rate = clock/72;
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
#ifndef __2612INTF_H__
|
||||
#define __2612INTF_H__
|
||||
|
||||
struct YM2612interface
|
||||
typedef struct _ym2612_interface ym2612_interface;
|
||||
struct _ym2612_interface
|
||||
{
|
||||
void (*handler)(running_machine *machine, int irq);
|
||||
};
|
||||
|
@ -17,7 +17,7 @@ struct ymf262_info
|
||||
sound_stream * stream;
|
||||
emu_timer * timer[2];
|
||||
void * chip;
|
||||
const struct YMF262interface *intf;
|
||||
const ymf262_interface *intf;
|
||||
};
|
||||
|
||||
|
||||
@ -69,7 +69,7 @@ static void _stream_update(void *param, int interval)
|
||||
|
||||
static void *ymf262_start(const char *tag, int sndindex, int clock, const void *config)
|
||||
{
|
||||
static const struct YMF262interface dummy = { 0 };
|
||||
static const ymf262_interface dummy = { 0 };
|
||||
struct ymf262_info *info;
|
||||
int rate = clock/288;
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
#define YMF262INTF_H
|
||||
|
||||
|
||||
struct YMF262interface
|
||||
typedef struct _ymf262_interface ymf262_interface;
|
||||
struct _ymf262_interface
|
||||
{
|
||||
void (*handler)(running_machine *machine, int irq);
|
||||
};
|
||||
|
@ -32,7 +32,7 @@ struct ym3812_info
|
||||
sound_stream * stream;
|
||||
emu_timer * timer[2];
|
||||
void * chip;
|
||||
const struct YM3812interface *intf;
|
||||
const ym3812_interface *intf;
|
||||
};
|
||||
|
||||
static void IRQHandler_3812(void *param,int irq)
|
||||
@ -81,7 +81,7 @@ static void _stream_update_3812(void * param, int interval)
|
||||
|
||||
static void *ym3812_start(const char *tag, int sndindex, int clock, const void *config)
|
||||
{
|
||||
static const struct YM3812interface dummy = { 0 };
|
||||
static const ym3812_interface dummy = { 0 };
|
||||
struct ym3812_info *info;
|
||||
int rate = clock/72;
|
||||
|
||||
@ -199,7 +199,7 @@ struct ym3526_info
|
||||
sound_stream * stream;
|
||||
emu_timer * timer[2];
|
||||
void * chip;
|
||||
const struct YM3526interface *intf;
|
||||
const ym3526_interface *intf;
|
||||
};
|
||||
|
||||
|
||||
@ -250,7 +250,7 @@ static void _stream_update_3526(void *param, int interval)
|
||||
|
||||
static void *ym3526_start(const char *tag, int sndindex, int clock, const void *config)
|
||||
{
|
||||
static const struct YM3526interface dummy = { 0 };
|
||||
static const ym3526_interface dummy = { 0 };
|
||||
struct ym3526_info *info;
|
||||
int rate = clock/72;
|
||||
|
||||
@ -367,7 +367,7 @@ struct y8950_info
|
||||
sound_stream * stream;
|
||||
emu_timer * timer[2];
|
||||
void * chip;
|
||||
const struct Y8950interface *intf;
|
||||
const y8950_interface *intf;
|
||||
int index;
|
||||
};
|
||||
|
||||
@ -445,7 +445,7 @@ static void _stream_update_8950(void *param, int interval)
|
||||
|
||||
static void *y8950_start(const char *tag, int sndindex, int clock, const void *config)
|
||||
{
|
||||
static const struct Y8950interface dummy = { 0 };
|
||||
static const y8950_interface dummy = { 0 };
|
||||
struct y8950_info *info;
|
||||
int rate = clock/72;
|
||||
|
||||
|
@ -2,14 +2,16 @@
|
||||
#define YM3812INTF_H
|
||||
|
||||
|
||||
struct YM3812interface
|
||||
typedef struct _ym3812_interface ym3812_interface;
|
||||
struct _ym3812_interface
|
||||
{
|
||||
void (*handler)(running_machine *machine, int linestate);
|
||||
};
|
||||
|
||||
#define YM3526interface YM3812interface
|
||||
#define ym3526_interface ym3812_interface
|
||||
|
||||
struct Y8950interface
|
||||
typedef struct _y8950_interface y8950_interface;
|
||||
struct _y8950_interface
|
||||
{
|
||||
void (*handler)(running_machine *machine, int linestate);
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
/* the state of the streamed output */
|
||||
struct tms5110_info
|
||||
{
|
||||
const struct TMS5110interface *intf;
|
||||
const tms5110_interface *intf;
|
||||
const char *tag;
|
||||
sound_stream *stream;
|
||||
void *chip;
|
||||
@ -68,7 +68,7 @@ static void speech_rom_set_addr(int addr)
|
||||
|
||||
static void *tms5110_start(const char *tag, int sndindex, int clock, const void *config)
|
||||
{
|
||||
static const struct TMS5110interface dummy = { 0 };
|
||||
static const tms5110_interface dummy = { 0 };
|
||||
struct tms5110_info *info;
|
||||
|
||||
info = auto_malloc(sizeof(*info));
|
||||
|
@ -5,7 +5,8 @@
|
||||
/* usually 640000 for 8000 Hz sample rate or */
|
||||
/* usually 800000 for 10000 Hz sample rate. */
|
||||
|
||||
struct TMS5110interface
|
||||
typedef struct _tms5110_interface tms5110_interface;
|
||||
struct _tms5110_interface
|
||||
{
|
||||
int (*M0_callback)(void); /* function to be called when chip requests another bit */
|
||||
void (*load_address)(int addr); /* speech ROM load address callback */
|
||||
|
@ -23,7 +23,7 @@
|
||||
/* the state of the streamed output */
|
||||
struct tms5220_info
|
||||
{
|
||||
const struct TMS5220interface *intf;
|
||||
const tms5220_interface *intf;
|
||||
sound_stream *stream;
|
||||
int clock;
|
||||
void *chip;
|
||||
@ -43,7 +43,7 @@ static void tms5220_update(void *param, stream_sample_t **inputs, stream_sample_
|
||||
|
||||
static void *tms5220_start(const char *tag, int sndindex, int clock, const void *config)
|
||||
{
|
||||
static const struct TMS5220interface dummy = { 0 };
|
||||
static const tms5220_interface dummy = { 0 };
|
||||
struct tms5220_info *info;
|
||||
|
||||
info = auto_malloc(sizeof(*info));
|
||||
|
@ -5,7 +5,8 @@
|
||||
/* usually 640000 for 8000 Hz sample rate or */
|
||||
/* usually 800000 for 10000 Hz sample rate. */
|
||||
|
||||
struct TMS5220interface
|
||||
typedef struct _tms5220_interface tms5220_interface;
|
||||
struct _tms5220_interface
|
||||
{
|
||||
void (*irq)(running_machine *machine, int state); /* IRQ callback function */
|
||||
|
||||
|
@ -513,7 +513,7 @@ static void AICA_StopSlot(struct _SLOT *slot,int keyoff)
|
||||
|
||||
#define log_base_2(n) (log((float) n)/log((float) 2))
|
||||
|
||||
static void AICA_Init(const char *tag, struct _AICA *AICA, const struct AICAinterface *intf, int sndindex)
|
||||
static void AICA_Init(const char *tag, struct _AICA *AICA, const aica_interface *intf, int sndindex)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -1274,7 +1274,7 @@ static void AICA_Update(void *param, stream_sample_t **inputs, stream_sample_t *
|
||||
|
||||
static void *aica_start(const char *tag, int sndindex, int clock, const void *config)
|
||||
{
|
||||
const struct AICAinterface *intf;
|
||||
const aica_interface *intf;
|
||||
|
||||
struct _AICA *AICA;
|
||||
|
||||
|
@ -8,7 +8,8 @@
|
||||
|
||||
#define MAX_AICA (2)
|
||||
|
||||
struct AICAinterface
|
||||
typedef struct _aica_interface aica_interface;
|
||||
struct _aica_interface
|
||||
{
|
||||
int roffset; /* offset in the region */
|
||||
void (*irq_callback)(running_machine *machine, int state); /* irq callback */
|
||||
|
@ -786,7 +786,7 @@ ADDRESS_MAP_END
|
||||
*
|
||||
*************************************/
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
atarigen_ym2151_irq_gen
|
||||
};
|
||||
@ -811,7 +811,7 @@ MACHINE_DRIVER_START( jsa_i_stereo )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, JSA_MASTER_CLOCK)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.60)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.60)
|
||||
MACHINE_DRIVER_END
|
||||
@ -825,7 +825,7 @@ MACHINE_DRIVER_START( jsa_i_stereo_swapped )
|
||||
|
||||
/* sound hardware */
|
||||
MDRV_SOUND_REPLACE("ym", YM2151, JSA_MASTER_CLOCK)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.60)
|
||||
MDRV_SOUND_ROUTE(1, "left", 0.60)
|
||||
MACHINE_DRIVER_END
|
||||
@ -856,7 +856,7 @@ MACHINE_DRIVER_START( jsa_i_mono_speech )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, JSA_MASTER_CLOCK)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.60)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.60)
|
||||
|
||||
@ -877,7 +877,7 @@ MACHINE_DRIVER_START( jsa_ii_mono )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, JSA_MASTER_CLOCK)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.60)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.60)
|
||||
|
||||
@ -920,7 +920,7 @@ MACHINE_DRIVER_START( jsa_iiis_stereo )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, JSA_MASTER_CLOCK)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.60)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.60)
|
||||
|
||||
|
@ -372,7 +372,7 @@ static WRITE8_HANDLER( ad2083_tms5110_ctrl_w )
|
||||
timer_set(attotime_zero,NULL,0,ad2083_step);
|
||||
}
|
||||
|
||||
static const struct TMS5110interface ad2083_tms5110_interface =
|
||||
static const tms5110_interface ad2083_tms5110_interface =
|
||||
{
|
||||
ad2083_speech_rom_read_bit /* M0 callback function. Called whenever chip requests a single bit of data */
|
||||
};
|
||||
|
@ -467,7 +467,7 @@ WRITE16_HANDLER( seibu_main_mustb_w )
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
const struct YM3812interface seibu_ym3812_interface =
|
||||
const ym3812_interface seibu_ym3812_interface =
|
||||
{
|
||||
seibu_ym3812_irqhandler
|
||||
};
|
||||
@ -478,12 +478,12 @@ const custom_sound_interface seibu_adpcm_interface =
|
||||
seibu_adpcm_stop
|
||||
};
|
||||
|
||||
const struct YM2151interface seibu_ym2151_interface =
|
||||
const ym2151_interface seibu_ym2151_interface =
|
||||
{
|
||||
seibu_ym2151_irqhandler
|
||||
};
|
||||
|
||||
const struct YM2203interface seibu_ym2203_interface =
|
||||
const ym2203_interface seibu_ym2203_interface =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
|
@ -62,10 +62,10 @@ WRITE8_HANDLER( seibu_adpcm_ctl_1_w );
|
||||
WRITE8_HANDLER( seibu_adpcm_adr_2_w );
|
||||
WRITE8_HANDLER( seibu_adpcm_ctl_2_w );
|
||||
|
||||
extern const struct YM3812interface seibu_ym3812_interface;
|
||||
extern const ym3812_interface seibu_ym3812_interface;
|
||||
extern const custom_sound_interface seibu_adpcm_interface;
|
||||
extern const struct YM2151interface seibu_ym2151_interface;
|
||||
extern const struct YM2203interface seibu_ym2203_interface;
|
||||
extern const ym2151_interface seibu_ym2151_interface;
|
||||
extern const ym2203_interface seibu_ym2203_interface;
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
|
@ -233,7 +233,7 @@ static READ8_HANDLER(t5182_sharedram_semaphore_main_r)
|
||||
}
|
||||
|
||||
|
||||
const struct YM2151interface t5182_ym2151_interface =
|
||||
const ym2151_interface t5182_ym2151_interface =
|
||||
{
|
||||
t5182_ym2151_irq_handler
|
||||
};
|
||||
|
@ -1,3 +1,7 @@
|
||||
#include "sound/262intf.h"
|
||||
#include "sound/2151intf.h"
|
||||
|
||||
|
||||
#define CPUTAG_T5182 "T5182"
|
||||
#define T5182COINPORT "T5182_COIN"
|
||||
|
||||
@ -11,4 +15,4 @@ WRITE8_HANDLER(t5182_sharedram_semaphore_main_release_w);
|
||||
|
||||
extern UINT8 *t5182_sharedram;
|
||||
|
||||
extern const struct YM2151interface t5182_ym2151_interface;
|
||||
extern const ym2151_interface t5182_ym2151_interface;
|
||||
|
@ -171,14 +171,14 @@ static const pia6821_interface cvsd_pia_intf =
|
||||
****************************************************************************/
|
||||
|
||||
/* YM2151 structure (CVSD variant) */
|
||||
static const struct YM2151interface cvsd_ym2151_interface =
|
||||
static const ym2151_interface cvsd_ym2151_interface =
|
||||
{
|
||||
cvsd_ym2151_irq
|
||||
};
|
||||
|
||||
|
||||
/* YM2151 structure (ADPCM variant) */
|
||||
static const struct YM2151interface adpcm_ym2151_interface =
|
||||
static const ym2151_interface adpcm_ym2151_interface =
|
||||
{
|
||||
adpcm_ym2151_irq
|
||||
};
|
||||
|
@ -184,7 +184,7 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 0,5,irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2610interface ym2610_interface =
|
||||
static const ym2610_interface ym2610_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
@ -209,7 +209,7 @@ static MACHINE_DRIVER_START( drill )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, 16000000/2)
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.25)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.25)
|
||||
MDRV_SOUND_ROUTE(1, "left", 1.0)
|
||||
|
@ -281,7 +281,7 @@ static void sound_irq(running_machine *machine, int linestate)
|
||||
cpunum_set_input_line(machine, 1,0,linestate); /* IRQ */
|
||||
}
|
||||
|
||||
static const struct YM3812interface ym3812_interface =
|
||||
static const ym3812_interface ym3812_config =
|
||||
{
|
||||
sound_irq
|
||||
};
|
||||
@ -323,7 +323,7 @@ static MACHINE_DRIVER_START( actfancr )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.50)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3812, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 1024188)
|
||||
@ -366,7 +366,7 @@ static MACHINE_DRIVER_START( triothep )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.50)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3812, XTAL_12MHz/4) /* verified on pcb */
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, XTAL_1_056MHz) /* verified on pcb */
|
||||
|
@ -1308,12 +1308,12 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1,0,irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2610interface ym2610_interface =
|
||||
static const ym2610_interface ym2610_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
|
||||
static const struct YM3812interface ym3812_interface =
|
||||
static const ym3812_interface ym3812_config =
|
||||
{
|
||||
irqhandler /* IRQ Line */
|
||||
};
|
||||
@ -1351,7 +1351,7 @@ static MACHINE_DRIVER_START( pspikes )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, 8000000)
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.25)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.25)
|
||||
MDRV_SOUND_ROUTE(1, "left", 1.0)
|
||||
@ -1476,7 +1476,7 @@ static MACHINE_DRIVER_START( karatblz )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, 8000000)
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.25)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.25)
|
||||
MDRV_SOUND_ROUTE(1, "left", 1.0)
|
||||
@ -1514,7 +1514,7 @@ static MACHINE_DRIVER_START( spinlbrk )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, XTAL_8MHz) /* verified on pcb */
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.25)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.25)
|
||||
MDRV_SOUND_ROUTE(1, "left", 1.0)
|
||||
@ -1552,7 +1552,7 @@ static MACHINE_DRIVER_START( turbofrc )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, XTAL_8MHz) /* verified on pcb */
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.25)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.25)
|
||||
MDRV_SOUND_ROUTE(1, "left", 1.0)
|
||||
@ -1591,7 +1591,7 @@ static MACHINE_DRIVER_START( aerofgtb )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, 8000000)
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.25)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.25)
|
||||
MDRV_SOUND_ROUTE(1, "left", 1.0)
|
||||
@ -1630,7 +1630,7 @@ static MACHINE_DRIVER_START( aerofgt )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, XTAL_8MHz) /* verified on pcb */
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.25)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.25)
|
||||
MDRV_SOUND_ROUTE(1, "left", 1.0)
|
||||
@ -1727,7 +1727,7 @@ static MACHINE_DRIVER_START( wbbc97 )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM3812, 3579545)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 1056000)
|
||||
|
@ -560,7 +560,7 @@ GFXDECODE_END
|
||||
|
||||
/* Sound Interfaces */
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -642,7 +642,7 @@ static MACHINE_DRIVER_START( airbustr )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.25)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.25)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.25)
|
||||
|
@ -226,7 +226,7 @@ static const struct K007232_interface k007232_interface =
|
||||
volume_callback /* external port callback */
|
||||
};
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
0,
|
||||
aliens_snd_bankswitch_w
|
||||
@ -266,7 +266,7 @@ static MACHINE_DRIVER_START( aliens )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 3579545)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.60)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.60)
|
||||
|
||||
|
@ -1865,7 +1865,7 @@ static const ay8910_interface ay8910_config =
|
||||
soundlatch_r
|
||||
};
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -1879,7 +1879,7 @@ static void YM3812_irq(running_machine *machine, int param)
|
||||
cpunum_set_input_line(machine, 1, 0, (param) ? HOLD_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM3812interface ym3812_interface =
|
||||
static const ym3812_interface ym3812_config =
|
||||
{
|
||||
YM3812_irq
|
||||
};
|
||||
@ -2056,7 +2056,7 @@ static MACHINE_DRIVER_START( alpha68k_I )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM3812, 4000000)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
@ -2091,7 +2091,7 @@ static MACHINE_DRIVER_START( alpha68k_II )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym1", YM2203, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.65)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM2413, 8000000)
|
||||
@ -2139,7 +2139,7 @@ static MACHINE_DRIVER_START( alpha68k_II_gm )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym1", YM2203, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.65)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM2413, 8000000)
|
||||
@ -2181,7 +2181,7 @@ static MACHINE_DRIVER_START( alpha68k_V )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym1", YM2203, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.65)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM2413, 8000000)
|
||||
@ -2222,7 +2222,7 @@ static MACHINE_DRIVER_START( alpha68k_V_sb )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym1", YM2203, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.65)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM2413, 8000000)
|
||||
@ -2262,7 +2262,7 @@ static MACHINE_DRIVER_START( tnexspce )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM3812, 4000000)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
|
@ -244,7 +244,7 @@ static void irq_handler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1,0,irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2151interface amspdwy_ym2151_interface =
|
||||
static const ym2151_interface amspdwy_ym2151_interface =
|
||||
{
|
||||
irq_handler
|
||||
};
|
||||
|
@ -543,7 +543,7 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1,0,irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -626,7 +626,7 @@ static MACHINE_DRIVER_START( angelkds )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym1", YM2203, 4000000)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.65)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.65)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.65)
|
||||
|
@ -339,7 +339,7 @@ static void irq_handler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1, 0 , irq ? ASSERT_LINE : CLEAR_LINE );
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
irq_handler
|
||||
};
|
||||
@ -377,7 +377,7 @@ static MACHINE_DRIVER_START( aquarium )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 3579545)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.45)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.45)
|
||||
|
||||
|
@ -180,7 +180,7 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1, 0, irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -730,7 +730,7 @@ static MACHINE_DRIVER_START( argus )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, 6000000 / 4)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.15)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.15)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.15)
|
||||
@ -768,7 +768,7 @@ static MACHINE_DRIVER_START( valtric )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym1", YM2203, 6000000 / 4)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.15)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.15)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.15)
|
||||
@ -812,7 +812,7 @@ static MACHINE_DRIVER_START( butasan )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym1", YM2203, 6000000 / 4)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.30)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.30)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.30)
|
||||
@ -856,7 +856,7 @@ static MACHINE_DRIVER_START( bombsa )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym1", YM2203, 12000000 / 8)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.30)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.30)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.30)
|
||||
|
@ -317,7 +317,7 @@ static const struct MSM5205interface msm5205_interface =
|
||||
MSM5205_S48_4B /* 4KHz 4-bit */
|
||||
};
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -364,7 +364,7 @@ static MACHINE_DRIVER_START( ashnojoe )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, 4000000) /* 4 MHz (verified on pcb) */
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MDRV_SOUND_ADD("msm", MSM5205, 384000)
|
||||
|
@ -751,13 +751,13 @@ static void irq_handler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1,0,irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2610interface ym2610_interface =
|
||||
static const ym2610_interface ym2610_config =
|
||||
{
|
||||
irq_handler
|
||||
};
|
||||
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
irq_handler,
|
||||
sound_bankswitch_w
|
||||
@ -812,7 +812,7 @@ static MACHINE_DRIVER_START( bonzeadv )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, 8000000)
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.25)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 1.0)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 1.0)
|
||||
@ -850,7 +850,7 @@ static MACHINE_DRIVER_START( asuka )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, XTAL_16MHz/4) /* verified on pcb */
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.50)
|
||||
|
||||
@ -891,7 +891,7 @@ static MACHINE_DRIVER_START( cadash )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, XTAL_8MHz/2) /* verified on pcb */
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.50)
|
||||
MACHINE_DRIVER_END
|
||||
@ -928,7 +928,7 @@ static MACHINE_DRIVER_START( mofflott )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 4000000)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.50)
|
||||
|
||||
@ -969,7 +969,7 @@ static MACHINE_DRIVER_START( galmedes )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 4000000)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.50)
|
||||
MACHINE_DRIVER_END
|
||||
@ -1006,7 +1006,7 @@ static MACHINE_DRIVER_START( eto )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 4000000)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.50)
|
||||
MACHINE_DRIVER_END
|
||||
|
@ -684,7 +684,7 @@ GFXDECODE_END
|
||||
*
|
||||
*************************************/
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
atarigen_ym2151_irq_gen
|
||||
};
|
||||
@ -728,7 +728,7 @@ static MACHINE_DRIVER_START( atarisy1 )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, ATARI_CLOCK_14MHz/4)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.80)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.80)
|
||||
|
||||
|
@ -449,7 +449,7 @@ static const ay8910_interface ay8910_interface_2 =
|
||||
NULL
|
||||
};
|
||||
|
||||
static const struct TMS5110interface tms5110_interface =
|
||||
static const tms5110_interface bagman_tms5110_interface =
|
||||
{
|
||||
bagman_speech_rom_read_bit /*M0 callback function. Called whenever chip requests a single bit of data*/
|
||||
};
|
||||
@ -486,7 +486,7 @@ static MACHINE_DRIVER_START( bagman )
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.10)
|
||||
|
||||
MDRV_SOUND_ADD("tms", TMS5110A, 640000)
|
||||
MDRV_SOUND_CONFIG(tms5110_interface)
|
||||
MDRV_SOUND_CONFIG(bagman_tms5110_interface)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
|
@ -246,7 +246,7 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 0, M6809_FIRQ_LINE, irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM3526interface ym3526_interface =
|
||||
static const ym3526_interface ym3526_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
@ -281,7 +281,7 @@ static MACHINE_DRIVER_START( battlane )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM3526, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym3526_interface)
|
||||
MDRV_SOUND_CONFIG(ym3526_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
|
@ -631,7 +631,7 @@ static void sound_irq( running_machine *machine, int irq )
|
||||
cpunum_set_input_line(machine, 1,0,irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2608interface ym2608_interface =
|
||||
static const ym2608_interface ym2608_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT | AY8910_SINGLE_OUTPUT,
|
||||
@ -641,7 +641,7 @@ static const struct YM2608interface ym2608_interface =
|
||||
sound_irq
|
||||
};
|
||||
|
||||
static const struct YM2610interface ym2610_interface =
|
||||
static const ym2610_interface ym2610_config =
|
||||
{
|
||||
sound_irq
|
||||
};
|
||||
@ -716,7 +716,7 @@ static MACHINE_DRIVER_START( bbusters )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, 8000000)
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 3.0)
|
||||
MDRV_SOUND_ROUTE(0, "right", 3.0)
|
||||
MDRV_SOUND_ROUTE(1, "left", 1.0)
|
||||
@ -757,7 +757,7 @@ static MACHINE_DRIVER_START( mechatt )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2608, 8000000)
|
||||
MDRV_SOUND_CONFIG(ym2608_interface)
|
||||
MDRV_SOUND_CONFIG(ym2608_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.50)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "left", 1.0)
|
||||
|
@ -224,7 +224,7 @@ static MACHINE_DRIVER_START( bigstrkb )
|
||||
MDRV_VIDEO_UPDATE(bigstrkb)
|
||||
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
// MDRV_SOUND_ADD("ym", YM2151, ym2151_interface)
|
||||
// MDRV_SOUND_ADD("ym", YM2151, ym2151_config)
|
||||
|
||||
MDRV_SOUND_ADD("oki1", OKIM6295, 4000000)
|
||||
MDRV_SOUND_CONFIG(okim6295_interface_pin7high)
|
||||
|
@ -299,7 +299,7 @@ GFXDECODE_END
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -348,7 +348,7 @@ static MACHINE_DRIVER_START( bladestl )
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60)
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, 3579545)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.45)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
|
@ -233,7 +233,7 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1,0,irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -283,7 +283,7 @@ static MACHINE_DRIVER_START( blktiger )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym1", YM2203, XTAL_3_579545MHz) /* verified on pcb */
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM2203, XTAL_3_579545MHz) /* verified on pcb */
|
||||
|
@ -174,7 +174,7 @@ static void blockout_irq_handler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line_and_vector(machine, 1,0,irq ? ASSERT_LINE : CLEAR_LINE,0xff);
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
blockout_irq_handler
|
||||
};
|
||||
@ -207,7 +207,7 @@ static MACHINE_DRIVER_START( blockout )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 3579545)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.60)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.60)
|
||||
|
||||
|
@ -287,7 +287,7 @@ static WRITE8_HANDLER( sound_bankswitch_w )
|
||||
OKIM6295_set_bank_base(0, (data & 1) * 0x40000);
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
sound_irq,
|
||||
sound_bankswitch_w
|
||||
@ -323,7 +323,7 @@ static MACHINE_DRIVER_START( boogwing )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.80)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.80)
|
||||
|
||||
|
@ -330,7 +330,7 @@ static void irqhandler(running_machine *machine, int linestate)
|
||||
cpunum_set_input_line(machine, 1,M6809_IRQ_LINE,linestate);
|
||||
}
|
||||
|
||||
static const struct YM3526interface ym3526_interface =
|
||||
static const ym3526_interface ym3526_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
@ -370,7 +370,7 @@ static MACHINE_DRIVER_START( brkthru )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.50)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3526, MASTER_CLOCK/4)
|
||||
MDRV_SOUND_CONFIG(ym3526_interface)
|
||||
MDRV_SOUND_CONFIG(ym3526_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
@ -419,7 +419,7 @@ static MACHINE_DRIVER_START( darwin )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.50)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3526, MASTER_CLOCK/4)
|
||||
MDRV_SOUND_CONFIG(ym3526_interface)
|
||||
MDRV_SOUND_CONFIG(ym3526_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
|
@ -674,7 +674,7 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 2, 0, irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -719,7 +719,7 @@ static MACHINE_DRIVER_START( tokio )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, MAIN_XTAL/8)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.08)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.08)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.08)
|
||||
@ -763,7 +763,7 @@ static MACHINE_DRIVER_START( bublbobl )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym1", YM2203, MAIN_XTAL/8)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3526, MAIN_XTAL/8)
|
||||
|
@ -477,7 +477,7 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1,0,irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2151interface cabalbl_ym2151_interface =
|
||||
static const ym2151_interface cabalbl_ym2151_interface =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
|
@ -329,7 +329,7 @@ INPUT_PORTS_END
|
||||
*
|
||||
*************************************/
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -377,7 +377,7 @@ static MACHINE_DRIVER_START( capbowl )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, MASTER_CLOCK/2)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.07)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.07)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.07)
|
||||
|
@ -1966,12 +1966,12 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1,0,irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -2256,7 +2256,7 @@ static MACHINE_DRIVER_START( hotdogst )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, 4000000)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.20)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.20)
|
||||
MDRV_SOUND_ROUTE(1, "left", 0.20)
|
||||
@ -2351,7 +2351,7 @@ static MACHINE_DRIVER_START( mazinger )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, 4000000)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.20)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.20)
|
||||
MDRV_SOUND_ROUTE(1, "left", 0.20)
|
||||
@ -2407,7 +2407,7 @@ static MACHINE_DRIVER_START( metmqstr )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 16000000/4)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 1.20)
|
||||
MDRV_SOUND_ROUTE(1, "right", 1.20)
|
||||
|
||||
@ -2462,7 +2462,7 @@ static MACHINE_DRIVER_START( pwrinst2 )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, 16000000 / 4)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.40)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.40)
|
||||
MDRV_SOUND_ROUTE(1, "left", 0.40)
|
||||
@ -2522,7 +2522,7 @@ static MACHINE_DRIVER_START( sailormn )
|
||||
/* sound hardware */
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
MDRV_SOUND_ADD("ym", YM2151, 16000000/4)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.30)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.30)
|
||||
|
||||
|
@ -329,7 +329,7 @@ static void sound_irq(running_machine *machine, int state)
|
||||
cpunum_set_input_line(machine, 1,1,state); /* IRQ 2 */
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
sound_irq
|
||||
};
|
||||
@ -367,7 +367,7 @@ static MACHINE_DRIVER_START( twocrude )
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.45)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.45)
|
||||
|
||||
|
@ -462,7 +462,7 @@ static void chinagat_irq_handler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 2, 0, irq ? ASSERT_LINE : CLEAR_LINE );
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
chinagat_irq_handler
|
||||
};
|
||||
@ -482,7 +482,7 @@ static INTERRUPT_GEN( chinagat_interrupt )
|
||||
}
|
||||
|
||||
/* This is only on the second bootleg board */
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -527,7 +527,7 @@ static MACHINE_DRIVER_START( chinagat )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 3579545)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.80)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.80)
|
||||
|
||||
@ -575,7 +575,7 @@ static MACHINE_DRIVER_START( saiyugb1 )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 3579545)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.80)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.80)
|
||||
|
||||
@ -619,7 +619,7 @@ static MACHINE_DRIVER_START( saiyugb2 )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym1", YM2203, 3579545)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.50)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.50)
|
||||
|
@ -94,7 +94,7 @@ static WRITE8_HANDLER( ym_port_w2 )
|
||||
}
|
||||
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -486,7 +486,7 @@ static MACHINE_DRIVER_START( chinsan )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, 1500000) /* ? Mhz */
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.15)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.15)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.15)
|
||||
|
@ -313,7 +313,7 @@ static void chqflag_ym2151_irq_w(running_machine *machine, int data)
|
||||
}
|
||||
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
chqflag_ym2151_irq_w
|
||||
};
|
||||
@ -375,7 +375,7 @@ static MACHINE_DRIVER_START( chqflag )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, XTAL_3_579545MHz) /* verified on pcb */
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.80)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.80)
|
||||
|
||||
|
@ -189,7 +189,7 @@ GFXDECODE_END
|
||||
|
||||
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -236,7 +236,7 @@ static MACHINE_DRIVER_START( citycon )
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, 1250000)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.40)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.40)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.40)
|
||||
|
@ -763,13 +763,13 @@ static WRITE8_HANDLER( sound_bankswitch_w )
|
||||
OKIM6295_set_bank_base(1, (data & 1) * 0x40000);
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
sound_irq,
|
||||
sound_bankswitch_w
|
||||
};
|
||||
|
||||
static const struct YM2151interface ym2151_interface2 =
|
||||
static const ym2151_interface ym2151_interface2 =
|
||||
{
|
||||
sound_irq2
|
||||
};
|
||||
@ -811,7 +811,7 @@ static MACHINE_DRIVER_START( cninja )
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.45)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.45)
|
||||
|
||||
@ -904,7 +904,7 @@ static MACHINE_DRIVER_START( edrandy )
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.45)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.45)
|
||||
|
||||
@ -953,7 +953,7 @@ static MACHINE_DRIVER_START( robocop2 )
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.60)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.45)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.45)
|
||||
|
||||
@ -997,7 +997,7 @@ static MACHINE_DRIVER_START( mutantf )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.45)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.45)
|
||||
|
||||
|
@ -747,7 +747,7 @@ static MACHINE_DRIVER_START( cntsteer )
|
||||
|
||||
/* sound hardware */
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
// MDRV_SOUND_ADD("ym", YM2203, ym2203_interface)
|
||||
// MDRV_SOUND_ADD("ym", YM2203, ym2203_config)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
static MACHINE_DRIVER_START( zerotrgt )
|
||||
|
@ -557,7 +557,7 @@ static GFXDECODE_START( combascb )
|
||||
GFXDECODE_ENTRY( "gfx2", 0x40000, sprite_layout, 0, 8*16 )
|
||||
GFXDECODE_END
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -605,7 +605,7 @@ static MACHINE_DRIVER_START( combasc )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20)
|
||||
|
||||
MDRV_SOUND_ADD("upd", UPD7759, UPD7759_STANDARD_CLOCK)
|
||||
@ -646,7 +646,7 @@ static MACHINE_DRIVER_START( combascb )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20)
|
||||
|
||||
MDRV_SOUND_ADD("upd", UPD7759, UPD7759_STANDARD_CLOCK)
|
||||
|
@ -194,7 +194,7 @@ static void sound_irq(running_machine *machine, int linestate)
|
||||
cpunum_set_input_line(machine, 0,0,linestate);
|
||||
}
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -230,7 +230,7 @@ static MACHINE_DRIVER_START( compgolf )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, 1500000)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
|
@ -149,7 +149,7 @@ static INPUT_PORTS_START( cowrace )
|
||||
PORT_START("IN0")
|
||||
INPUT_PORTS_END
|
||||
|
||||
static const struct YM2203interface ym2203_interface_1 =
|
||||
static const ym2203_interface ym2203_interface_1 =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
|
@ -3572,7 +3572,7 @@ static void cps1_irq_handler_mus(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1,0,irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
cps1_irq_handler_mus
|
||||
};
|
||||
@ -3617,7 +3617,7 @@ static MACHINE_DRIVER_START( cps1_10MHz )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("2151", YM2151, 3579545)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.35)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.35)
|
||||
|
||||
@ -3776,7 +3776,7 @@ static MACHINE_DRIVER_START( sf2mdt )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("2151", YM2151, 3579545)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.35)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.35)
|
||||
|
||||
|
@ -264,7 +264,7 @@ INPUT_PORTS_END
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
0,
|
||||
crimfght_snd_bankswitch_w
|
||||
@ -314,7 +314,7 @@ static MACHINE_DRIVER_START( crimfght )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 3579545) /* verified with PCB */
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 1.0)
|
||||
MDRV_SOUND_ROUTE(1, "right", 1.0)
|
||||
|
||||
|
@ -324,7 +324,7 @@ static void irqhandler(running_machine *machine, int linestate)
|
||||
cpunum_set_input_line(machine, 1,0,linestate);
|
||||
}
|
||||
|
||||
static const struct YM3812interface ym3812_interface =
|
||||
static const ym3812_interface ym3812_config =
|
||||
{
|
||||
irqhandler /* IRQ Line */
|
||||
};
|
||||
@ -358,7 +358,7 @@ static MACHINE_DRIVER_START( crospang )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM3812, 14318180/4)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 1056000)
|
||||
@ -395,7 +395,7 @@ static MACHINE_DRIVER_START( bestri )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM3812, 14318180/4)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 1056000)
|
||||
|
@ -447,7 +447,7 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1,0,irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2610interface ym2610_interface =
|
||||
static const ym2610_interface ym2610_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
@ -485,7 +485,7 @@ static MACHINE_DRIVER_START( crshrace )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, 8000000)
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.25)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.25)
|
||||
MDRV_SOUND_ROUTE(1, "left", 1.0)
|
||||
|
@ -448,7 +448,7 @@ static int speech_rom_read_bit(void)
|
||||
}
|
||||
|
||||
|
||||
static const struct TMS5110interface tms5100_interface =
|
||||
static const tms5110_interface tms5100_interface =
|
||||
{
|
||||
speech_rom_read_bit, /* M0 callback function. Called whenever chip requests a single bit of data */
|
||||
NULL
|
||||
|
@ -417,7 +417,7 @@ GFXDECODE_END
|
||||
*
|
||||
*************************************/
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
atarigen_ym2151_irq_gen
|
||||
};
|
||||
@ -477,7 +477,7 @@ static MACHINE_DRIVER_START( cyberbal )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, ATARI_CLOCK_14MHz/4)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.60)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.60)
|
||||
|
||||
|
@ -556,7 +556,7 @@ static INTERRUPT_GEN( slave_irq )
|
||||
}
|
||||
}
|
||||
|
||||
static const struct Y8950interface y8950_interface = {
|
||||
static const y8950_interface y8950_config = {
|
||||
0 /* TODO */
|
||||
};
|
||||
|
||||
@ -592,12 +592,12 @@ static MACHINE_DRIVER_START( cybertnk )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym1", Y8950, 3579500)
|
||||
MDRV_SOUND_CONFIG(y8950_interface)
|
||||
MDRV_SOUND_CONFIG(y8950_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 1.0)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 1.0)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", Y8950, 3579500)
|
||||
MDRV_SOUND_CONFIG(y8950_interface)
|
||||
MDRV_SOUND_CONFIG(y8950_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 1.0)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 1.0)
|
||||
MACHINE_DRIVER_END
|
||||
|
@ -803,7 +803,7 @@ static void irqhandler(running_machine *machine, int irq) /* assumes Z80 sandwic
|
||||
cpunum_set_input_line(machine, 1,0,irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2203interface ym2203_interface_1 =
|
||||
static const ym2203_interface ym2203_interface_1 =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -816,7 +816,7 @@ static const struct YM2203interface ym2203_interface_1 =
|
||||
irqhandler
|
||||
};
|
||||
|
||||
static const struct YM2203interface ym2203_interface_2 =
|
||||
static const ym2203_interface ym2203_interface_2 =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
|
@ -277,7 +277,7 @@ static void sound_irq(running_machine *machine, int state)
|
||||
cpunum_set_input_line(machine, 1,1,state); /* IRQ 2 */
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
sound_irq
|
||||
};
|
||||
@ -315,7 +315,7 @@ static MACHINE_DRIVER_START( darkseal )
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.45)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.55)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.55)
|
||||
|
||||
|
@ -542,7 +542,7 @@ static WRITE8_HANDLER( sound_bankswitch_w )
|
||||
OKIM6295_set_bank_base(1, (data & 1) * 0x40000);
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
sound_irq,
|
||||
sound_bankswitch_w
|
||||
@ -590,7 +590,7 @@ static MACHINE_DRIVER_START( dassault )
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.40)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.45)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.45)
|
||||
|
||||
|
@ -530,7 +530,7 @@ static void sound_irq(running_machine *machine, int irq)
|
||||
// mame_printf_debug("sound irq\n");
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
sound_irq
|
||||
};
|
||||
@ -564,7 +564,7 @@ static MACHINE_DRIVER_START( dblewing )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.45)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 32220000/32)
|
||||
|
@ -311,7 +311,7 @@ INPUT_PORTS_END
|
||||
|
||||
/**********************************************************************************/
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
dbz_sound_irq
|
||||
};
|
||||
@ -369,7 +369,7 @@ static MACHINE_DRIVER_START( dbz )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 4000000)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 1.0)
|
||||
MDRV_SOUND_ROUTE(1, "right", 1.0)
|
||||
|
||||
|
@ -953,7 +953,7 @@ GFXDECODE_END
|
||||
*
|
||||
*************************************/
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
irq_handler
|
||||
};
|
||||
@ -1004,7 +1004,7 @@ static MACHINE_DRIVER_START( ddragon )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("fm", YM2151, SOUND_CLOCK)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.60)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.60)
|
||||
|
||||
@ -1069,7 +1069,7 @@ static MACHINE_DRIVER_START( ddgn6809 )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("fm", YM2151, SOUND_CLOCK)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.60)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.60)
|
||||
|
||||
@ -1115,7 +1115,7 @@ static MACHINE_DRIVER_START( ddragon2 )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, SOUND_CLOCK)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.60)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.60)
|
||||
|
||||
|
@ -456,7 +456,7 @@ static void dd3_ymirq_handler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1, 0 , irq ? ASSERT_LINE : CLEAR_LINE );
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
dd3_ymirq_handler
|
||||
};
|
||||
@ -509,7 +509,7 @@ static MACHINE_DRIVER_START( ddragon3 )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym2151", YM2151, 3579545) /* music */
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.50)
|
||||
|
||||
|
@ -318,7 +318,7 @@ static GFXDECODE_START( ddrible )
|
||||
GFXDECODE_ENTRY( "gfx2", 0x40000, spritelayout, 64, 16 ) /* colors 0-15 but using lookup table */
|
||||
GFXDECODE_END
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -373,7 +373,7 @@ static MACHINE_DRIVER_START( ddribble )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2203, XTAL_3_579545MHz) /* verified on pcb */
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "filter1", 0.25)
|
||||
MDRV_SOUND_ROUTE(1, "filter2", 0.25)
|
||||
MDRV_SOUND_ROUTE(2, "filter3", 0.25)
|
||||
|
@ -912,12 +912,12 @@ static void sound_irq2(running_machine *machine, int linestate)
|
||||
cpunum_set_input_line(machine, 1,1,linestate); /* IRQ2 */
|
||||
}
|
||||
|
||||
static const struct YM3812interface ym3812_interface =
|
||||
static const ym3812_interface ym3812_config =
|
||||
{
|
||||
sound_irq
|
||||
};
|
||||
|
||||
static const struct YM3812interface ym3812b_interface =
|
||||
static const ym3812_interface ym3812b_interface =
|
||||
{
|
||||
sound_irq2
|
||||
};
|
||||
@ -958,7 +958,7 @@ static MACHINE_DRIVER_START( hbarrel )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.35)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3812, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 1023924)
|
||||
@ -1000,7 +1000,7 @@ static MACHINE_DRIVER_START( baddudes )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.35)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3812, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 1023924)
|
||||
@ -1042,7 +1042,7 @@ static MACHINE_DRIVER_START( birdtry )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.35)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3812, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 1023924)
|
||||
@ -1089,7 +1089,7 @@ static MACHINE_DRIVER_START( robocop )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.35)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3812, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 1023924)
|
||||
@ -1131,7 +1131,7 @@ static MACHINE_DRIVER_START( robocopb )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.35)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3812, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 1023924)
|
||||
@ -1178,7 +1178,7 @@ static MACHINE_DRIVER_START( hippodrm )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.35)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3812, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 1023924)
|
||||
|
@ -2019,17 +2019,17 @@ static void oscar_irqhandler(running_machine *machine, int linestate)
|
||||
cpunum_set_input_line(machine, 2,0,linestate); /* M6502_IRQ_LINE */
|
||||
}
|
||||
|
||||
static const struct YM3526interface ym3526_interface =
|
||||
static const ym3526_interface ym3526_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
|
||||
static const struct YM3526interface oscar_ym3526_interface =
|
||||
static const ym3526_interface oscar_ym3526_interface =
|
||||
{
|
||||
oscar_irqhandler
|
||||
};
|
||||
|
||||
static const struct YM3812interface ym3812_interface =
|
||||
static const ym3812_interface ym3812_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
@ -2118,7 +2118,7 @@ static MACHINE_DRIVER_START( cobracom )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.50)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3812, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
@ -2161,7 +2161,7 @@ static MACHINE_DRIVER_START( ghostb )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.20)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3812, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
@ -2202,7 +2202,7 @@ static MACHINE_DRIVER_START( srdarwin )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.20)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3812, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
@ -2244,7 +2244,7 @@ static MACHINE_DRIVER_START( gondo )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.20)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3526, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym3526_interface)
|
||||
MDRV_SOUND_CONFIG(ym3526_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
@ -2468,7 +2468,7 @@ static MACHINE_DRIVER_START( garyoret )
|
||||
MDRV_SOUND_ROUTE(3, "mono", 0.20)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3526, 3000000)
|
||||
MDRV_SOUND_CONFIG(ym3526_interface)
|
||||
MDRV_SOUND_CONFIG(ym3526_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
|
@ -1796,13 +1796,13 @@ static WRITE8_HANDLER( sound_bankswitch_w )
|
||||
OKIM6295_set_bank_base(1, ((data >> 1)& 1) * 0x40000);
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
sound_irq,
|
||||
sound_bankswitch_w
|
||||
};
|
||||
|
||||
static const struct YM2151interface ym2151_interface_nslasher =
|
||||
static const ym2151_interface ym2151_interface_nslasher =
|
||||
{
|
||||
sound_irq_nslasher,
|
||||
sound_bankswitch_w
|
||||
@ -1901,7 +1901,7 @@ static MACHINE_DRIVER_START( captaven )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.42)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.42)
|
||||
|
||||
@ -1947,7 +1947,7 @@ static MACHINE_DRIVER_START( fghthist )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.42)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.42)
|
||||
|
||||
@ -1993,7 +1993,7 @@ static MACHINE_DRIVER_START( fghthsta )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.42)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.42)
|
||||
|
||||
@ -2041,7 +2041,7 @@ static MACHINE_DRIVER_START( dragngun )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.42)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.42)
|
||||
|
||||
@ -2094,7 +2094,7 @@ static MACHINE_DRIVER_START( lockload )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.42)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.42)
|
||||
|
||||
|
@ -272,7 +272,7 @@ static void irqhandler(running_machine *machine, int linestate)
|
||||
cpunum_set_input_line(machine, 1,0,linestate);
|
||||
}
|
||||
|
||||
static const struct YM3812interface ym3812_interface =
|
||||
static const ym3812_interface ym3812_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
@ -310,7 +310,7 @@ static MACHINE_DRIVER_START( deniam16b )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM3812, 25000000/8)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 1056000)
|
||||
@ -345,7 +345,7 @@ static MACHINE_DRIVER_START( deniam16c )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM3812, 25000000/8)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 1056000)
|
||||
|
@ -187,7 +187,7 @@ static void sound_irq(running_machine *machine, int state)
|
||||
cpunum_set_input_line(machine, 1,1,state); /* IRQ 2 */
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
sound_irq
|
||||
};
|
||||
@ -219,7 +219,7 @@ static MACHINE_DRIVER_START( dietgo )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, XTAL_32_22MHz/9) /* verified on pcb */
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.45)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, XTAL_32_22MHz/32) /* verified on pcb */
|
||||
|
@ -877,7 +877,7 @@ static READ8_HANDLER( unk_r )
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct YM2203interface ym2203_interface_1 =
|
||||
static const ym2203_interface ym2203_interface_1 =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -887,7 +887,7 @@ static const struct YM2203interface ym2203_interface_1 =
|
||||
irqhandler
|
||||
};
|
||||
|
||||
static const struct YM2203interface ym2203_interface_2 =
|
||||
static const ym2203_interface ym2203_interface_2 =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -897,7 +897,7 @@ static const struct YM2203interface ym2203_interface_2 =
|
||||
NULL
|
||||
};
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
@ -925,7 +925,7 @@ static MACHINE_DRIVER_START( sound_2151 )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 3579545)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.50)
|
||||
|
||||
@ -938,7 +938,7 @@ static MACHINE_DRIVER_START( sound_2151_m68k )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 4000000)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.50)
|
||||
|
||||
|
@ -3602,7 +3602,7 @@ INPUT_PORTS_END
|
||||
Hana no Mai
|
||||
***************************************************************************/
|
||||
|
||||
static const struct YM2203interface hanamai_ym2203_interface =
|
||||
static const ym2203_interface hanamai_ym2203_interface =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -3725,7 +3725,7 @@ MACHINE_DRIVER_END
|
||||
Sports Match
|
||||
***************************************************************************/
|
||||
|
||||
static const struct YM2203interface sprtmtch_ym2203_interface =
|
||||
static const ym2203_interface sprtmtch_ym2203_interface =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -3902,7 +3902,7 @@ MACHINE_DRIVER_END
|
||||
|
||||
// dual monitor, 2 CPU's, 2 blitters
|
||||
|
||||
static const struct YM2203interface jantouki_ym2203_interface =
|
||||
static const ym2203_interface jantouki_ym2203_interface =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
|
@ -278,7 +278,7 @@ static void irqhandler(running_machine *machine, int linestate)
|
||||
cpunum_set_input_line_and_vector(machine, 1,0,linestate,0xff);
|
||||
}
|
||||
|
||||
static const struct YM3526interface ym3526_interface =
|
||||
static const ym3526_interface ym3526_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
@ -332,7 +332,7 @@ static MACHINE_DRIVER_START( exprraid )
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM3526, 3600000)
|
||||
MDRV_SOUND_CONFIG(ym3526_interface)
|
||||
MDRV_SOUND_CONFIG(ym3526_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
|
@ -315,7 +315,7 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1, 0, irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
@ -360,7 +360,7 @@ static MACHINE_DRIVER_START( exzisus )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 4000000)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.50)
|
||||
MACHINE_DRIVER_END
|
||||
|
@ -553,7 +553,7 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 2,0,irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2610interface ym2610_interface =
|
||||
static const ym2610_interface ym2610_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
@ -594,7 +594,7 @@ static MACHINE_DRIVER_START( f1gp )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, XTAL_8MHz)
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.25)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.25)
|
||||
MDRV_SOUND_ROUTE(1, "left", 1.0)
|
||||
|
@ -852,7 +852,7 @@ static void galaxygn_sound_irq(running_machine *machine, int line)
|
||||
cpunum_set_input_line_and_vector(machine, 1, 0, line ? ASSERT_LINE : CLEAR_LINE, 0x80/4);
|
||||
}
|
||||
|
||||
static const struct YM2151interface galaxygn_ym2151_interface =
|
||||
static const ym2151_interface galaxygn_ym2151_interface =
|
||||
{
|
||||
galaxygn_sound_irq
|
||||
};
|
||||
@ -950,7 +950,7 @@ static void wheelrun_ym3526_irqhandler(running_machine *machine, int state)
|
||||
cpunum_set_input_line(machine, 1, INPUT_LINE_IRQ0, state);
|
||||
}
|
||||
|
||||
static const struct YM3526interface wheelrun_ym3526_interface =
|
||||
static const ym3526_interface wheelrun_ym3526_interface =
|
||||
{
|
||||
wheelrun_ym3526_irqhandler
|
||||
};
|
||||
|
@ -737,7 +737,7 @@ static MACHINE_DRIVER_START( kodb )
|
||||
// MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
// MDRV_SOUND_ADD("2151", YM2151, 3579545)
|
||||
// MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
// MDRV_SOUND_CONFIG(ym2151_config)
|
||||
// MDRV_SOUND_ROUTE(0, "mono", 0.35)
|
||||
// MDRV_SOUND_ROUTE(1, "mono", 0.35)
|
||||
|
||||
|
@ -687,7 +687,7 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1, 0, irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2610interface ym2610_interface =
|
||||
static const ym2610_interface ym2610_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
@ -743,7 +743,7 @@ static MACHINE_DRIVER_START( fromanc2 )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, 8000000)
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.75)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.75)
|
||||
@ -794,7 +794,7 @@ static MACHINE_DRIVER_START( fromancr )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, 8000000)
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.75)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.75)
|
||||
@ -842,7 +842,7 @@ static MACHINE_DRIVER_START( fromanc4 )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, 8000000)
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.75)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.75)
|
||||
|
@ -357,7 +357,7 @@ static void sound_irq(running_machine *machine, int state)
|
||||
cpunum_set_input_line(machine, 1,1,state); /* IRQ 2 */
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
sound_irq
|
||||
};
|
||||
@ -390,7 +390,7 @@ static MACHINE_DRIVER_START( funkyjet )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 32220000/9)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.45)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.45)
|
||||
|
||||
|
@ -504,7 +504,7 @@ static void soundirq(running_machine *machine, int state)
|
||||
cpunum_set_input_line(machine, 1, 0, state);
|
||||
}
|
||||
|
||||
static const struct YM3812interface fuuki16_ym3812_intf =
|
||||
static const ym3812_interface fuuki16_ym3812_intf =
|
||||
{
|
||||
soundirq /* IRQ Line */
|
||||
};
|
||||
|
@ -591,7 +591,7 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1, 0, irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YMF262interface ymf262_interface =
|
||||
static const ymf262_interface fuuki32_ymf262_interface =
|
||||
{
|
||||
irqhandler /* irq */
|
||||
};
|
||||
@ -629,7 +629,7 @@ static MACHINE_DRIVER_START( fuuki32 )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ymf1", YMF262, FM_SOUND_CLOCK) /* 33.8688MHz OSC divided by 2 is 16.9344MHz */
|
||||
MDRV_SOUND_CONFIG(ymf262_interface)
|
||||
MDRV_SOUND_CONFIG(fuuki32_ymf262_interface)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.50)
|
||||
MDRV_SOUND_ROUTE(1, "right", 0.50)
|
||||
MDRV_SOUND_ROUTE(2, "left", 0.50)
|
||||
|
@ -961,7 +961,7 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1,0,irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -1002,7 +1002,7 @@ static MACHINE_DRIVER_START( shadoww )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym1", YM2203, 4000000)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.15)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.15)
|
||||
MDRV_SOUND_ROUTE(2, "mono", 0.15)
|
||||
|
@ -268,7 +268,7 @@ static void irqhandler(running_machine *machine, int linestate)
|
||||
cpunum_set_input_line(machine, 1,0,linestate);
|
||||
}
|
||||
|
||||
static const struct YM3812interface ym3812_interface =
|
||||
static const ym3812_interface ym3812_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
@ -304,7 +304,7 @@ static MACHINE_DRIVER_START( galspnbl )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM3812, 3579545)
|
||||
MDRV_SOUND_CONFIG(ym3812_interface)
|
||||
MDRV_SOUND_CONFIG(ym3812_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 1056000)
|
||||
|
@ -653,7 +653,7 @@ static READ8_HANDLER(f1_r)
|
||||
return mame_rand(machine);
|
||||
}
|
||||
|
||||
static const struct YM2203interface ppking_ym2203_interface =
|
||||
static const ym2203_interface ppking_ym2203_interface =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -666,7 +666,7 @@ static const struct YM2203interface ppking_ym2203_interface =
|
||||
NULL
|
||||
};
|
||||
|
||||
static const struct YM2203interface gladiatr_ym2203_interface =
|
||||
static const ym2203_interface gladiatr_ym2203_interface =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
|
@ -237,7 +237,7 @@ static void irqhandler(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, irq ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2203interface ym2203_interface =
|
||||
static const ym2203_interface ym2203_config =
|
||||
{
|
||||
{
|
||||
AY8910_LEGACY_OUTPUT,
|
||||
@ -341,7 +341,7 @@ static MACHINE_DRIVER_START( goal92 )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym1", YM2203, 2500000/2)
|
||||
MDRV_SOUND_CONFIG(ym2203_interface)
|
||||
MDRV_SOUND_CONFIG(ym2203_config)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
MDRV_SOUND_ADD("ym2", YM2203, 2500000/2)
|
||||
|
@ -264,7 +264,7 @@ static void irqhandler(running_machine *machine, int linestate)
|
||||
cpunum_set_input_line(machine, 1,0,linestate);
|
||||
}
|
||||
|
||||
static const struct YM2151interface ym2151_interface =
|
||||
static const ym2151_interface ym2151_config =
|
||||
{
|
||||
irqhandler
|
||||
};
|
||||
@ -300,7 +300,7 @@ static MACHINE_DRIVER_START( gotcha )
|
||||
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2151, 14318180/4)
|
||||
MDRV_SOUND_CONFIG(ym2151_interface)
|
||||
MDRV_SOUND_CONFIG(ym2151_config)
|
||||
MDRV_SOUND_ROUTE(0, "mono", 0.80)
|
||||
MDRV_SOUND_ROUTE(1, "mono", 0.80)
|
||||
|
||||
|
@ -273,7 +273,7 @@ static void gs_ym2610_irq(running_machine *machine, int irq)
|
||||
cpunum_set_input_line(machine, 1, 0, CLEAR_LINE);
|
||||
}
|
||||
|
||||
static const struct YM2610interface ym2610_interface =
|
||||
static const ym2610_interface ym2610_config =
|
||||
{
|
||||
gs_ym2610_irq
|
||||
};
|
||||
@ -598,7 +598,7 @@ static MACHINE_DRIVER_START( gstriker )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, 8000000)
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.25)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.25)
|
||||
MDRV_SOUND_ROUTE(1, "left", 1.0)
|
||||
@ -638,7 +638,7 @@ static MACHINE_DRIVER_START( vgoal )
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
|
||||
MDRV_SOUND_ADD("ym", YM2610, 8000000)
|
||||
MDRV_SOUND_CONFIG(ym2610_interface)
|
||||
MDRV_SOUND_CONFIG(ym2610_config)
|
||||
MDRV_SOUND_ROUTE(0, "left", 0.25)
|
||||
MDRV_SOUND_ROUTE(0, "right", 0.25)
|
||||
MDRV_SOUND_ROUTE(1, "left", 1.0)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user