summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/8080bw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/8080bw.cpp')
-rw-r--r--src/mame/audio/8080bw.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/mame/audio/8080bw.cpp b/src/mame/audio/8080bw.cpp
index 7e8f8113126..225480bd8fa 100644
--- a/src/mame/audio/8080bw.cpp
+++ b/src/mame/audio/8080bw.cpp
@@ -1423,9 +1423,9 @@ WRITE8_MEMBER( _8080bw_state::darthvdr_08_w )
#define CANE_SND_EN NODE_05
/* Nodes - Adjusters */
-#define CANE_VR1 NODE_07 // Gain for 76477
-#define CANE_VR2 NODE_08 // VR attached to the output of the TOS
-#define CANE_VR3 NODE_09 // VR for SFX generated by the 555
+#define CANE_VR1 NODE_07 // Gain for 76477
+#define CANE_VR2 NODE_08 // VR attached to the output of the TOS
+#define CANE_VR3 NODE_09 // VR for SFX generated by the 555
/* Nodes - sn76477 Sounds */
#define CANE_EXP_STREAM NODE_03
@@ -1512,11 +1512,11 @@ void cane_audio_device::device_start()
void cane_audio_device::sh_port_1_w(u8 data)
{
/*
- bit 0 - SX0 - Sound enable on mixer
- bit 1 - SX1 - SN76477 - Mixer select C - pin 27
- bit 2 - SX2 - SN76477 - Mixer select A - pin 26
- bit 3 - SX3 - SN76477 - Mixer select B - pin 25
- bit 4 - SX4 - NE555 - Trigger (Step, high output level for 1.1*RC = 1.1*100K*0.47u = 51.7 ms)
+ bit 0 - SX0 - Sound enable on mixer
+ bit 1 - SX1 - SN76477 - Mixer select C - pin 27
+ bit 2 - SX2 - SN76477 - Mixer select A - pin 26
+ bit 3 - SX3 - SN76477 - Mixer select B - pin 25
+ bit 4 - SX4 - NE555 - Trigger (Step, high output level for 1.1*RC = 1.1*100K*0.47u = 51.7 ms)
*/
m_discrete->write(CANE_SND_EN, data & 0x01); // BIT(data, 0) - bit 0 - SX0 - Sound enable on mixer
@@ -1609,24 +1609,24 @@ DISCRETE_SOUND_START(cane_discrete)
DISCRETE_ADJUSTMENT(CANE_VR3, 0, 0.33*60000, DISC_LINADJ, "VR3") // VR for SFX generated by the 555
/************************************************/
- /* From 555 */
+ /* From 555 */
/************************************************/
/* TODO: find real noise freq and amplitude */
/* width was simulated with ltspice using Claybuster schematic as a source and it's value is about 51ms */
DISCRETE_NOISE(CANE_76477_PIN6,
- 1, /* ENAB */
+ 1, /* ENAB */
1280, /* FREQ - Guessed */
- 1, /* AMP */
+ 1, /* AMP */
0) /* BIAS - fake AC is fine*/
DISCRETE_CLAMP(CANE_555_CLAMPED,
- CANE_76477_PIN6, /* input node */
- 0.0, /* minimum */
- 5.0) /* maximum */
+ CANE_76477_PIN6, /* input node */
+ 0.0, /* minimum */
+ 5.0) /* maximum */
DISCRETE_ONESHOT(CANE_555_ONESHOT,
- CANE_555_EN, /* trigger node */
- 1, /* amplitude node or static value */
- 0.05, /* width (in seconds) node or static value - 50 ms*/
- DISC_ONESHOT_FEDGE | DISC_ONESHOT_RETRIG) /* type of oneshot static value */
+ CANE_555_EN, /* trigger node */
+ 1, /* amplitude node or static value */
+ 0.05, /* width (in seconds) node or static value - 50 ms*/
+ DISC_ONESHOT_FEDGE | DISC_ONESHOT_RETRIG) /* type of oneshot static value */
DISCRETE_MULTIPLY(CANE_TMP_SND, CANE_555_CLAMPED, CANE_555_ONESHOT)
DISCRETE_MULTIPLY(CANE_SFX_SND, CANE_TMP_SND, CANE_VR3)
@@ -1663,13 +1663,13 @@ DISCRETE_SOUND_START(cane_discrete)
//LOG
/*
- DISCRETE_WAVLOG1(CANE_EXP_STREAM, 1)
- DISCRETE_WAVLOG1(CANE_EXP_SND, 1)
- DISCRETE_WAVLOG1(CANE_TMP_SND, 1)
- DISCRETE_WAVLOG1(CANE_SFX_SND, 1)
- DISCRETE_WAVLOG1(CANE_MUSIC_NOTE, 1)
- DISCRETE_WAVLOG1(CANE_MUSIC_SND, 1)
- DISCRETE_WAVLOG1(CANE_SOUND_OUT, 1)
+ DISCRETE_WAVLOG1(CANE_EXP_STREAM, 1)
+ DISCRETE_WAVLOG1(CANE_EXP_SND, 1)
+ DISCRETE_WAVLOG1(CANE_TMP_SND, 1)
+ DISCRETE_WAVLOG1(CANE_SFX_SND, 1)
+ DISCRETE_WAVLOG1(CANE_MUSIC_NOTE, 1)
+ DISCRETE_WAVLOG1(CANE_MUSIC_SND, 1)
+ DISCRETE_WAVLOG1(CANE_SOUND_OUT, 1)
*/
DISCRETE_SOUND_END