Do the speakersMake sure you use have a green check nextyour speakers set to them?default. If not, depending on your configuration, this could make them produce noise during the sound test but not with anything else. If they are set up as your default device then another device, like digital audio, may need to be disabled.
I deleted the picture and clarified my statement in case it was confusing.