Prev: 9AD0 Up: Map Next: 9B0D
9ADE: Init sound
Used by the routine at entry.
init_sound 9ADE CALL $1FD6 TURN_OFF_SOUND
9AE1 LD HL,tune_data_buffer_1 First tune data buffer
9AE4 LD DE,$000A Size of tune data
9AE7 LD (ptr_psg_noise_data),HL Set to tune_data_buffer_1
9AEA ADD HL,DE
9AEB LD (ptr_psg_tone_1_data),HL Set to tune_data_buffer_2
9AEE ADD HL,DE
9AEF LD (ptr_psg_tone_2_data),HL Set to tune_data_buffer_3
9AF2 ADD HL,DE
9AF3 LD (ptr_psg_tone_3_data),HL Set to tune_data_buffer_4
9AF6 LD B,$04 4 channels
9AF8 LD IX,tune_data_buffer_1 First tune data buffer
init_sound_0 9AFC LD (IX+$00),$FF Disable
9B00 LD (IX+$06),$50 Attenuation
9B04 LD (IX+$08),$05 Speed (lower is faster)
9B08 ADD IX,DE Next channel
9B0A DJNZ init_sound_0 Loop for 4 channels
9B0C RET
Prev: 9AD0 Up: Map Next: 9B0D