
SETAUDOVOLUME:
MOVE.W #64,AUD0VOL(a0) ;Use maximum volume
SETAUDOPERIOD:
MOVE.W #447,AUD0PER(a0)
BEGINCHAN0:
MOVE.W #(DMAF_SETCLR!DMAF_AUD0!DMAF_MASTER),DMACON(a0)
RTS ; Return to main code
DS.W 0 ; Be sure word-aligned
SINEDATA:
DC.B 0, 90, 127, 90, 0, -90, -127, -90
END
PRODUCING COMPLEX SOUNDS
In addition to simple tones, you can create more complex sounds, such as different
musical notes joined into a one-voice melody, different notes played at the same time, or
modulated sounds.
JOINING TONES
Tones are joined by writing the location and length registers, starting the audio output,
and rewriting the registers in preparation for the next audio waveform that you wish to
connect to the first one. This is made easy by the timing of the audio interrupts and the
existence of back-up registers. The location and length registers are read by the DMA
channel before audio output begins.
The DMA channel then stores the values in back-up registers. Once the original registers
have been read by the DMA channel, you can change their values without disturbing the
operation you started with the original register contents. Thus, you can write the contents
of these registers, start an audio output, and then rewrite the registers in preparation for
the next waveform you want to connect to this one.
Interrupts occur immediately after the audio DMA channel has read the location and
length registers and stored their values in the back-up registers. Once the interrupt has
occurred, you can rewrite the registers with the location and length for the next waveform
segment. This combination of back-up registers and interrupt timing lets you keep one
step ahead of the audio DMA channel, allowing your sound output to be continuous and
smooth.
If you do not rewrite the registers, the current waveform will be repeated. Each time the
length counter reaches zero, both the location and length registers are reloaded with the
same values to continue the audio output.
- Audio Hardware 143 -
Summary of Contents for Amiga A1000
Page 1: ...AMIGA HARDWARE REFERENCE MANUAL 1992 Commodore Business Machines Amiga 1200 PAL...
Page 20: ...Figure 1 1 Block Diagram for the Amiga Computer Family Introduction 11...
Page 21: ...12 Introduction...
Page 72: ...Figure 3 12 A dual Playfield display Playfield Hardware 63...
Page 87: ...Figure 3 24 Horizontal Scrolling 78 playfield hardware...
Page 101: ...92 Playfield Hardware...
Page 199: ...Figure 6 9 DMA time slot allocation 190 Blitter hardware...
Page 203: ...Figure 6 13 Blitter Block Diagram 194 Blitter Hardware...
Page 229: ...220 System Control Hardware...
Page 246: ...Figure 8 8 Chinon Timing diagram cont Interface Hardware 237...
Page 265: ...256 Interface Hardware...
Page 289: ...280 Appendix A...
Page 297: ...288 Appendix B...
Page 298: ...APPENDIX C CUSTOM CHIP PIN ALLOCATION LIST NOTE Means an active low signal Appendix C 289...
Page 302: ...APPENDIX D SYSTEM MEMORY MAP Appendix D 293...
Page 343: ...334 Appendix F...
Page 351: ...342 Appendix G...
Page 361: ...352 Appendix H...
Page 367: ...358 Appendix I...