Skip to navigation

Revs on the BBC Micro

Sound: FlushSoundBuffers

Name: FlushSoundBuffers [Show more] Type: Subroutine Category: Sound Summary: Flush all four specified sound buffers Deep dive: The engine sounds
.FlushSoundBuffers LDX #3 \ We are about to flush all four sound channel buffers \ (0 to 3), so set a loop counter in X .flub1 JSR FlushSoundBuffer \ Flush the buffer for sound channel X DEX \ Decrement the loop counter BPL flub1 \ Loop back until we have flushed all four buffers RTS \ Return from the subroutine EQUB &00 \ This byte appears to be unused