summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/includes/coco.h
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2015-08-17 09:37:30 -0400
committer R. Belmont <rb6502@users.noreply.github.com>2015-08-17 09:37:30 -0400
commit6a870588f2141f70449ad2bc6e23024e8b108fd8 (patch)
treef66b6d1659a676357348093340468ce58bfe08c3 /src/mess/includes/coco.h
parent45854fab0108829ee7b1964532207af2f5b2dac8 (diff)
parent039973b6d8e326b844693ffe0abb3053e6768e1d (diff)
Merge pull request #280 from richard42/trs80-coco-audio-fixes
Trs80 coco audio fixes
Diffstat (limited to 'src/mess/includes/coco.h')
-rw-r--r--src/mess/includes/coco.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mess/includes/coco.h b/src/mess/includes/coco.h
index a43af0d40f0..363fcff5d2a 100644
--- a/src/mess/includes/coco.h
+++ b/src/mess/includes/coco.h
@@ -153,8 +153,8 @@ protected:
void recalculate_firq(void);
// changed handlers
- virtual void pia1_pa_changed(void);
- virtual void pia1_pb_changed(void);
+ virtual void pia1_pa_changed(UINT8 data);
+ virtual void pia1_pb_changed(UINT8 data);
// miscellaneous
virtual void update_keyboard_input(UINT8 value, UINT8 z);
@@ -208,7 +208,6 @@ private:
bool is_joystick_hires(int joystick_index);
soundmux_status_t soundmux_status(void);
- UINT8 sound_value(void);
void update_sound(void);
bool joyin(void);
void poll_joystick(bool *joyin, UINT8 *buttons);
@@ -244,6 +243,10 @@ private:
// DAC output
UINT8 m_dac_output;
+ // remember the last audio sample level from the analog sources (DAC, cart, cassette) so that we don't
+ // introduce step changes when the audio output is enabled/disabled via PIA1 CB2
+ UINT8 m_analog_audio_level;
+
// hires interface
emu_timer *m_hiresjoy_transition_timer[2];
bool m_hiresjoy_ca;