Previous 15994 Revisions Next

r5291 Wednesday 22nd July, 2009 at 05:11:23 UTC by Miodrag Milanović
[PK8000] Changed sound
[src/mess/drivers]pk8000.c

src/mess/drivers/pk8000.c
r5290r5291
1212#include "machine/i8255a.h"
1313#include "devices/cassette.h"
1414#include "formats/fmsx_cas.h"
15#include "sound/dac.h"
15#include "sound/speaker.h"
1616#include "sound/wave.h"
1717
1818static UINT8 pk8000_text_start;
r5290r5291
107107static WRITE8_DEVICE_HANDLER(pk8000_80_portc_w)
108108{
109109   keyboard_line = data & 0x0f;     
110   
111   dac_signed_data_w (devtag_get_device(device->machine, "dac"), (BIT(data,7) ? 0 : 0x7f));
112   
110     
111   speaker_level_w(devtag_get_device(device->machine, "speaker"), BIT(data,7));
112     
113113   cassette_change_state(cassette_device_image(device->machine),
114114                  (BIT(data,4)) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED,
115115                  CASSETTE_MASK_MOTOR);
r5290r5291
510510   
511511    /* audio hardware */
512512   MDRV_SPEAKER_STANDARD_MONO("mono")
513   MDRV_SOUND_ADD("dac", DAC, 0)
513   MDRV_SOUND_ADD("speaker", SPEAKER, 0)
514514   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
515515   MDRV_SOUND_WAVE_ADD("wave", "cassette")
516516   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team