You are here:
- Home
- Documentation
- Quick OS
- Modules
- Quick Music
- QuickMusic::Mask
QuickMusic::Mask
Masks channels from being used in music. Any masked channels are immediately muted if they weren't previously masked, so be certain to call this BEFORE outputting any sound.
Incoming
-
A
-
Byte, The channel mask to apply. Each bit corresponds to a channel. A clear bit means that channel is disabled. A set bit means it is enabled.
Outgoing
All registers are lost.
Example
; Mask out channel 3 (all other channels enabled)
LDA #<(~$08)
JSR QuickMusic::Mask
; Start a channel 3 sound effect
JMP StartChannel3Sound