Question

Before I explain this I want to say that I know this is a very vague bug, it's just I have absolutely no idea what might be causing this.

Okay, the problem is that when my program is running there is a very quiet screeching sound coming from the PCs speakers (It's really hard to hear from speakers sometimes but it's quite clear when using headphones). This screeching sound happens even if the speakers are muted.

I recently started using irrKlang for my program's audio but it isn't being caused by that because I checked a build of my program which didn't have it and the screeching sound is still there.

The sound changes in pitch when my program is in a different state, and in each state the processor is being given more taxing processes to compute. So different loads on the CPU causes the sound to change.

There's not much else I can think of to describe it, if it will help I can post a link to my program so someone can have a listen.

I'm using C#, with SharpDX if this is any helpful information (I was going to post a question on the SharpDX forumn but it colsed recently).

Thanks for your time!

Was it helpful?

Solution

I've solved the problem.

It's somehow related to the graphics card producing signal noise which the sound card picks up, or at least that's how I understood it.

The cause of the problem was that I had disabled Vertical Sync in my program and the refresh rate was causing the problems that way.

I've re-enabled Vsync in my program and the issue has gone.

Thanks for the help anyway!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top