mirror of
https://github.com/holub/mame
synced 2025-07-01 08:18:59 +03:00
Fixed compile for s14001a.c and updated MESS dependent code in wave.c (no whatsnew needed)
This commit is contained in:
parent
57ec780797
commit
b981d4f5a1
@ -265,7 +265,7 @@ typedef struct
|
|||||||
UINT8 VSU1000_amp; // amplitude setting on VSU-1000 board
|
UINT8 VSU1000_amp; // amplitude setting on VSU-1000 board
|
||||||
} S14001AChip;
|
} S14001AChip;
|
||||||
|
|
||||||
INLINE S14001AChip *get_safe_token(const device_config *device)
|
INLINE S14001AChip *get_safe_token(running_device *device)
|
||||||
{
|
{
|
||||||
assert(device != NULL);
|
assert(device != NULL);
|
||||||
assert(device->token != NULL);
|
assert(device->token != NULL);
|
||||||
@ -598,7 +598,7 @@ static DEVICE_START( s14001a )
|
|||||||
chip->stream = stream_create(device, 0, 1, device->clock ? device->clock : device->machine->sample_rate, chip, s14001a_pcm_update);
|
chip->stream = stream_create(device, 0, 1, device->clock ? device->clock : device->machine->sample_rate, chip, s14001a_pcm_update);
|
||||||
}
|
}
|
||||||
|
|
||||||
int s14001a_bsy_r(const device_config *device)
|
int s14001a_bsy_r(running_device *device)
|
||||||
{
|
{
|
||||||
S14001AChip *chip = get_safe_token(device);
|
S14001AChip *chip = get_safe_token(device);
|
||||||
stream_update(chip->stream);
|
stream_update(chip->stream);
|
||||||
@ -608,14 +608,14 @@ int s14001a_bsy_r(const device_config *device)
|
|||||||
return (chip->machineState != 0);
|
return (chip->machineState != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void s14001a_reg_w(const device_config *device, int data)
|
void s14001a_reg_w(running_device *device, int data)
|
||||||
{
|
{
|
||||||
S14001AChip *chip = get_safe_token(device);
|
S14001AChip *chip = get_safe_token(device);
|
||||||
stream_update(chip->stream);
|
stream_update(chip->stream);
|
||||||
chip->WordInput = data;
|
chip->WordInput = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
void s14001a_rst_w(const device_config *device, int data)
|
void s14001a_rst_w(running_device *device, int data)
|
||||||
{
|
{
|
||||||
S14001AChip *chip = get_safe_token(device);
|
S14001AChip *chip = get_safe_token(device);
|
||||||
stream_update(chip->stream);
|
stream_update(chip->stream);
|
||||||
@ -624,13 +624,13 @@ void s14001a_rst_w(const device_config *device, int data)
|
|||||||
chip->machineState = chip->resetState ? 1 : chip->machineState;
|
chip->machineState = chip->resetState ? 1 : chip->machineState;
|
||||||
}
|
}
|
||||||
|
|
||||||
void s14001a_set_clock(const device_config *device, int clock)
|
void s14001a_set_clock(running_device *device, int clock)
|
||||||
{
|
{
|
||||||
S14001AChip *chip = get_safe_token(device);
|
S14001AChip *chip = get_safe_token(device);
|
||||||
stream_set_sample_rate(chip->stream, clock);
|
stream_set_sample_rate(chip->stream, clock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void s14001a_set_volume(const device_config *device, int volume)
|
void s14001a_set_volume(running_device *device, int volume)
|
||||||
{
|
{
|
||||||
S14001AChip *chip = get_safe_token(device);
|
S14001AChip *chip = get_safe_token(device);
|
||||||
stream_update(chip->stream);
|
stream_update(chip->stream);
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
static STREAM_UPDATE( wave_sound_update )
|
static STREAM_UPDATE( wave_sound_update )
|
||||||
{
|
{
|
||||||
#ifdef MESS
|
#ifdef MESS
|
||||||
const device_config *image = (const device_config *)param;
|
running_device *image = (running_device *)param;
|
||||||
cassette_image *cassette;
|
cassette_image *cassette;
|
||||||
cassette_state state;
|
cassette_state state;
|
||||||
double time_index;
|
double time_index;
|
||||||
@ -62,7 +62,7 @@ static STREAM_UPDATE( wave_sound_update )
|
|||||||
|
|
||||||
static DEVICE_START( wave )
|
static DEVICE_START( wave )
|
||||||
{
|
{
|
||||||
const device_config *image = NULL;
|
running_device *image = NULL;
|
||||||
|
|
||||||
assert( device != NULL );
|
assert( device != NULL );
|
||||||
assert( device->baseconfig().static_config != NULL );
|
assert( device->baseconfig().static_config != NULL );
|
||||||
|
Loading…
Reference in New Issue
Block a user