Screen recording not capturing audio

I am trying to take a screen recording of my experiment which is on pygame, but the recordings are not capturing the internal audio. I am using the win-alt-r shortcut- it works when I record my psychopy experiments, youtube videos, pretty much everything else. It’s just when I try to record my pygame experiment that it doesn’t record the audio.