Previous 15994 Revisions Next

r4295 Thursday 19th February, 2009 at 11:04:22 UTC by Robbbert
[LVIV/MZ700/MZ80] Fixed speaker.
[src/mess/machine]lviv.c mz700.c mz80.c

src/mess/machine/mz700.c
r4294r4295
111111/* Timer 0 is the clock for the speaker output */
112112static PIT8253_OUTPUT_CHANGED( pit_out0_changed )
113113{
114   speaker_level_w( 0, state ? 1 : 0 );
114   const device_config *speaker = devtag_get_device(device->machine, SOUND, "speaker");
115   speaker_level_w( speaker, state ? 1 : 0 );
115116}
116117
117118
src/mess/machine/lviv.c
r4294r4295
8686
8787static WRITE8_DEVICE_HANDLER ( lviv_ppi_0_portc_w )   /* tape in/out, video memory on/off */
8888{
89   const device_config *speaker = devtag_get_device(device->machine, SOUND, "speaker");
8990   lviv_ppi_port_outputs[0][2] = data;
9091   if (lviv_ppi_port_outputs[0][1]&0x80)
91      speaker_level_w(0, data&0x01);
92      speaker_level_w(speaker, data&0x01);
9293   cassette_output(devtag_get_device(device->machine, CASSETTE, "cassette"), (data & 0x01) ? -1.0 : 1.0);
9394   lviv_update_memory(device->machine);
9495}
src/mess/machine/mz80.c
r4294r4295
7171
7272static PIT8253_OUTPUT_CHANGED( pit_out0_changed )
7373{
74   speaker_level_w( 0, state ? 1 : 0 );
74   const device_config *speaker = devtag_get_device(device->machine, SOUND, "speaker");
75   speaker_level_w( speaker, state ? 1 : 0 );
7576}
7677
7778

Previous 15994 Revisions Next


© 1998-2018 The MESS Team