Enter AutoVolume. It's a free open-source app, that automatically change the volume of you Mac when it wakes from sleep. So, once you install and configure the app, next time you leave music or a video running, the app will automatically mute the volume when the system wakes up from sleep. So, let's see how it works.
Automatically Mute your Mac When it Wakes From Sleep
1. Download AutoVolume for its official website. It's a small file (2.27 MB)
2. You can run the app by double-clicking the zip file, however, you should install the app first to make sure it work every time. To do this, unzip it and install the program by dragging the AutoVolume the icon to your Applications folder.
3. Next, open the app and configure the 3 main settings.
3.1 Checkmark start at login
3.2 Checkmark Enable
3.2 At move the volume slider all the way to left, to mute the audio.
4. Next, close the window. Do not click on Quit or it'll stop the app from running in the background. If you want to stops the volume from automatically being set in future, then reopen the app and click on Quit.
Related: How to Stream Videos From Mac to iPad/iPhone
Updated: October 10, 2021