June 2021
Beginner
238 pages
4h 13m
English
If we are going to spend some time writing a game using PowerShell, then we better make it sound good. Old-school classic kinda good! Playing basic beeps at different pitches for different lengths of time or using the .Net framework and utilizing the Speech or SoundPlayer class to get more immersive and advanced.
For playing basic beep sounds, you can use [console]::beep(659, 500).
Pass the beep function two values (frequency in hertz and duration in milliseconds) to change the sound of the beep. You can play a beep sound on its own ...
Read now
Unlock full access