Previous 15994 Revisions Next

r6342 Sunday 8th November, 2009 at 23:22:47 UTC by Robbbert
[EXIDY] Replaced speaker with dac.
This enables sound in Arrington Software's Music Editor. Also makes some sounds in chomp.snp, although many are missing because it is a bad dump. The quickload version plays all sounds.
[src/mess/drivers]exidy.c
[src/mess/machine]exidy.c

src/mess/machine/exidy.c
r6341r6342
66
77#include "driver.h"
88#include "cpu/z80/z80.h"
9#include "sound/speaker.h"
9#include "sound/dac.h"
1010#include "sound/wave.h"
1111#include "machine/ctronics.h"
1212#include "devices/cassette.h"
r6341r6342
257257WRITE8_HANDLER(exidy_ff_w)
258258{
259259   const device_config *printer = devtag_get_device(space->machine, "centronics");
260   const device_config *speaker = devtag_get_device(space->machine, "speaker");
260   const device_config *dac_device = devtag_get_device(space->machine, "dac");
261261   /* reading the config switch */
262262   switch (input_port_read(space->machine, "CONFIG") & 0x06)
263263   {
264264      case 0: /* speaker */
265         speaker_level_w(speaker, (data) ? 1 : 0);
265         dac_data_w(dac_device, data);
266266         break;
267267
268268      case 2: /* Centronics 7-bit printer */
src/mess/drivers/exidy.c
r6341r6342
138138
139139#include "driver.h"
140140#include "cpu/z80/z80.h"
141#include "sound/speaker.h"
141#include "sound/dac.h"
142142#include "sound/wave.h"
143143#include "machine/ctronics.h"
144144#include "machine/wd17xx.h"
r6341r6342
378378   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)   // cass1 speaker
379379   MDRV_SOUND_WAVE_ADD("wave.2", "cassette2")
380380   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)   // cass2 speaker
381   MDRV_SOUND_ADD("speaker", SPEAKER, 0)
382   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)   // speaker on parallel port
381   MDRV_SOUND_ADD("dac", DAC, 0)
382   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)   // speaker or music card on parallel port
383383
384384   MDRV_AY31015_ADD( "ay_3_1015", exidy_ay31015_config )
385385

Previous 15994 Revisions Next


© 1998-2018 The MESS Team