Created
April 11, 2022 13:33
-
-
Save podstawek/75a65970b043c3fe90c93e5daa9e15e5 to your computer and use it in GitHub Desktop.
BEEP call in Apple Lisa's Pascal is non-blocking. Which is very different from e.g. ZX Spectrum implementation. This program illustrates how a loop can run while sound is playing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROGRAM sound; | |
USES HWINT; | |
var i:integer; | |
begin | |
SetVolume(2); | |
noise(3000); | |
for i:= 1 to 600 do | |
begin | |
writeln(i, ' counter'); | |
end; | |
silence; | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment