Prev: 29152 Up: Map Next: 29182
29168: Play Arrival Sound
Used by the routine at FinishScrollIn.
Plays the sound that goes with the end of the scroll at the start of a life, which is a rising sweep of 32 beeps. The entry point at PlaySweep makes the beeps for any sweep.
PlayArrivalSound 29168 LD C,32 The arrival sweep has 32 beeps.
29170 LD D,112 The lowest beep has half-period 112.
This entry point is used by the routines at PlayPickUpSound, PlayChangeSound, PlayMovingSound and PlayRemovalSound.
PlaySweep 29172 LD A,C The pitch starts at the number of beeps left.
29173 ADD A,D Add the base pitch.
29174 LD B,A That is the half-period of this beep.
29175 CALL PlaySquareWave Call PlaySquareWave.
29178 DEC C One beep of the sweep has been played.
29179 JR NZ,PlaySweep Jump to PlaySweep if the zero flag is clear.
29181 RET Return.
Prev: 29152 Up: Map Next: 29182