| 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 |
| r4294 | r4295 | |
|---|---|---|
| 111 | 111 | /* Timer 0 is the clock for the speaker output */ |
| 112 | 112 | static PIT8253_OUTPUT_CHANGED( pit_out0_changed ) |
| 113 | 113 | { |
| 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 ); | |
| 115 | 116 | } |
| 116 | 117 | |
| 117 | 118 |
| r4294 | r4295 | |
|---|---|---|
| 86 | 86 | |
| 87 | 87 | static WRITE8_DEVICE_HANDLER ( lviv_ppi_0_portc_w ) /* tape in/out, video memory on/off */ |
| 88 | 88 | { |
| 89 | const device_config *speaker = devtag_get_device(device->machine, SOUND, "speaker"); | |
| 89 | 90 | lviv_ppi_port_outputs[0][2] = data; |
| 90 | 91 | if (lviv_ppi_port_outputs[0][1]&0x80) |
| 91 | speaker_level_w( | |
| 92 | speaker_level_w(speaker, data&0x01); | |
| 92 | 93 | cassette_output(devtag_get_device(device->machine, CASSETTE, "cassette"), (data & 0x01) ? -1.0 : 1.0); |
| 93 | 94 | lviv_update_memory(device->machine); |
| 94 | 95 | } |
| r4294 | r4295 | |
|---|---|---|
| 71 | 71 | |
| 72 | 72 | static PIT8253_OUTPUT_CHANGED( pit_out0_changed ) |
| 73 | 73 | { |
| 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 ); | |
| 75 | 76 | } |
| 76 | 77 | |
| 77 | 78 |
| Previous | 15994 Revisions | Next |