Symptom
Captured audio sounds distorted at the point when the display went to sleep, dimmed, or when you woke it.
Solution
1. Choose Apple menu > System Preferences.
2. Choose View > Energy Saver.
3. Click Show Details.
4. Drag the slider to Never in the "Use separate time to put display to sleep" option.