From 68e9db4f514808034c70b8982b0a912cde311cc0 Mon Sep 17 00:00:00 2001 From: StewBC Date: Fri, 30 Apr 2021 14:13:01 -0700 Subject: [PATCH] Artificial delay when in-game music is off --- src/apple2/audio.inc | 48 ++++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/src/apple2/audio.inc b/src/apple2/audio.inc index a92afef..0cbecdf 100644 --- a/src/apple2/audio.inc +++ b/src/apple2/audio.inc @@ -9,7 +9,7 @@ .segment "CODE" ;----------------------------------------------------------------------------- -.proc audioPlayTitleNote +.proc audioPlayTitleNote fixedDuration = srcPtrL noteDuration = srcPtrH @@ -48,7 +48,7 @@ play: sta freqTimer1 ldx #11 ; delay about 20 clock cycles : - dex + dex bne :- : dec freqTimer2 ; dec timer 2 @@ -58,7 +58,7 @@ play: sta freqTimer2 ldx #11 ; and waste 20 clock cycles : - dex + dex bne :- : dec fixedDuration ; dec the fixed repeat count @@ -75,7 +75,7 @@ leave: inc musicH clc ; leave with carry clear : - rts + rts reset: lda #