Top
Best
New

Posted by pacificat0r 9 hours ago

Why are my headphones buzzing whenever I run my game?(alexene.dev)
134 points | 106 comments
Night_Thastus 8 hours ago|
I run into a similar problem. I have a power-hungry GPU (3080) and CPU (9800X3D).

All my audio equipment was on the same UPS (and therefore outlet) as my gaming PC.

The result is that any time a particularly stressful game would be open, I'd get buzzing in the speakers. (Especially if the framerate was at 360) If you ask audiophiles online they will swear up and down that a cheater plug, balanced cables, or optical isolation will fix it - that will not fix it. It's not a ground problem. It's not coming from the connection from the PC to the DAC - it's a power issue.

It seemed almost inconceivable to them that the problem was EMI from the computer making it into the equipment.

I temporarily got a double-conversion UPS (converts AC to DC to AC again) and housed the audio equipment on that instead (separate from PC) Lo-and-behold the noise was completely gone.

However, those UPS are extremely expensive, and far worse they're very loud because the fans run constantly.

So, I went with a simpler alternative. Just get a power strip and plug all the audio equipment into that on a different outlet. That reduces it massively. You can also get some strips that are designed to reduce EMI, but I haven't felt the need as of yet.

Gracana 8 hours ago||
If you're a bit handy, you can assemble a line filter using a part like this https://enerdoor.com/products/fin27/ for a heck of a lot cheaper than you can buy a filtered power strip.

You may also be able to solve the problem with a simple common mode choke, either the clip-on type, or a toroid that you wrap the cable through a couple-few times. https://palomar-engineers.com/rfi-kits/acdc-power-line-choke...

LM358 8 hours ago||
A filter like that will have very little attenuation in the audio spectrum.

I agree however that indiscriminately throwing ferrites at problems can be a good solution!

mrob 4 hours ago|||
Even if there's very little audio-frequency attenuation, it's possible for higher frequencies to produce audio-frequency intermodulation distortion, and filtering could reduce this. This is one reason "high definition" (ultrasound sampling rate) audio is a bad idea as a listening format.
0_____0 7 hours ago||||
This reminds me of my favorite "Downfall" meme video.

[Youtube] "Hitler fails radiated emissions" - Orin Laney: https://www.youtube.com/watch?v=eeo8ZZTfwZQ

actionfromafar 2 hours ago||||
Ferrites - almost never doing any harm, sometimes doing good. :-)
Gracana 7 hours ago|||
Maybe you’re right. My experience is with radios, where it’s possible that high frequency noise is conducted into the RF section rather than into the audio amplifier. I know that in one case, both my transmitted signal and received audio output were absolute garbage (edit: because it was picking up noise from the vehicle ignition) until I added a choke to the power input wiring.
brigade 7 hours ago|||
Well the OP’s electrical noise almost certainly is coming through the USB connection as their DAC has no external power supply. Extremely common.

Your problem of an AC power supply not sufficiently filtering out high-frequency noise from mains is exceptionally rare to the point that yes, I also don’t believe that was the correct diagnosis of your issue.

monster_truck 8 hours ago|||
Pure sine wave UPSs are not that expensive anymore man. I think the biggest "desktop" pure sine wave cyberpower sells (1500VA/1000W, CP1500PFCLCD) is <$300 now. I have a couple of them, they are great.
Night_Thastus 8 hours ago||
It's not about pure sine wave - it's double conversion. Only double-conversion would actually isolate the equipment from EMI on the line. Without that pure sine wave won't do squat for EMI.

And one of those, even the cheapest ones, run for about ~$900. And they are LOUD.

saltcured 5 hours ago|||
I wonder if modern motor and power control tech could be adapted to make a desk-side motor-generator set that is efficient enough to rival an always-active, dual conversion AC-DC-AC UPS.

How efficient could a small AC->motor->generator->AC chain be with a modest flywheel mass to provide cycle-to-cycle stability?

Could it ever make sense to put one of these after a standby UPS so the output is always filtered by the motor-generator but the UPS only has to kick in for outages?

mrob 4 hours ago||
One advantage of a motor-generator set is that it's relatively easy to get high-voltage isolation using an insulating shaft. It might be possible to build something that could survive nearby lightning strikes to the incoming AC line. I don't think any standard UPS can do this.
LoganDark 7 hours ago|||
Are they loud because they're double-conversion or are they loud because they're designed for server racks? When I search for double-conversion online I can practically only find rack-mount solutions.
arde 7 hours ago|||
They're loud because silence is not a priority in their design and their fans run non-stop.
Night_Thastus 7 hours ago|||
They're loud because unlike a regular UPS they need to run continually to convert the power back and forth. That generates a lot of waste heat, which fans must remove.
voldacar 5 hours ago|||
You could also chuck a bunch of ferrites on your PC power cord
bob1029 8 hours ago|||
> If you ask audiophiles online they will swear up and down that a cheater plug, balanced cables, or optical isolation will fix it - that will not fix it.

Lifting the ground on my studio monitors absolutely fixed my noise problems. I run them off a MiniDSP 2x4HD, so other sources like EMI aren't really a factor.

The problem I have with a double conversion UPS is that it isn't an ideal sinusoidal source. It implies it is on the tin, but when you've got protected loads with PWM power delivery slamming around 1+ kilowatts, there's no way to guarantee a smooth waveform with a typical ~2500VA unit. Directly passing through to the grid could provide cleaner power under the most transient conditions.

Yeask 8 hours ago|||
No need for UPS, a good external usb soundcard with power supply will solve that problem.

I have all connected to the the same power circuit and with a Elektron Digitakt as audio device and have zero noise.

With audio devices powered by USB there is a lot of noise.

Night_Thastus 7 hours ago|||
Sigh, it's almost like I had this conversation before.

My audio equipment is not connected by USB. It's connected by optical (TOSLINK) to an external DAC. TOSLINK is not great, but it shows that it is not a USB noise problem.

Yeask 6 hours ago||
If you had that conversation before and you still having noise, maybe you are not doing the right thing... Sigh...
Night_Thastus 6 hours ago|||
I got rid of the noise via the method I described in the original comment? Moving my audio equipment to separate power strip on a separate outlet. It didn't totally remove it, but made it quiet enough to deal with.
butvacuum 5 hours ago||
Don't mind them. I've had a similar thing happen, but with power line Ethernet. In your case however, I'd be at least a little concerned about the building wiring.
Night_Thastus 3 hours ago||
I ran into a similar problem! I briefly used CAT6, which is required to be shielded.

That shielding was carrying noise from my PC, through the network switch, to my raspberry pi that I used for music streaming. Absolutely nuts.

I swapped to unshielded ethernet cables and it went away.

As for building wiring, this issue has persisted in multiple buildings.

blep-arsh 7 hours ago|||
I also have a splitter which lets you power an USB device from a separate power supply (i.e. D+/D- lines are connected to a host and +5V comes from a separate plug, ground is shared though). And optical TOSLINK is a nice option where available.
terribleperson 2 hours ago|||
So in your situation, noise from your PC was showing up in other equipment on the same circuit.

Did you try replacing the PSU?

ThePowerOfFuet 3 hours ago|||
>the problem was EMI from the computer making it into the equipment

Do you have a PC case with a huge window? They (used to?) have grounded metal housings with only tiny openings for a reason.

ck2 4 hours ago|||
isolation transformers are way cheaper than double conversion and should work as well?

well they used to be cheaper, not sure what is going with prices these day, I remember this being around $100 a decade ago

https://www.officedepot.com/a/products/146730/Tripp-Lite-500...

https://www.officedepot.com/a/products/493958/Tripp-Lite-100...

fleroviumna 8 hours ago|||
[dead]
TacticalCoder 2 hours ago||
[dead]
bluedino 9 hours ago||
I remember 15+ years ago reading about certain laptops (Dell?) that you could 'hear' scrolling on websites, somehow the video chip was interfering with the sound chips. I had one at the time it was pretty weird.
PunchyHamster 9 hours ago||
Pretty common problem on builtin sound cards, even now. It's just very close to the noise source.

Shouldn't really happen on USB DAC, it should have enough filtering to get any interference injected by power, and enough shielding (and just being far away enough from machine) for other EMI

icelancer 8 hours ago||
Yeah this is the main reason to use a USB DAC. I guess you get marginally better sound quality (more noticeable on expensive studio headphones that need more power to drive them) but better isolation/removal from the noise source is the main reason I use them. Especially relevant because in my travel I'm often in countries that don't have ground plugs in their power sources.
distances 6 hours ago|||
Quite a flashback. I switched to optical TOSLINK maybe about 20 years ago, which solved all those issues obviously. It's a bit weird how rare optical outs are on motherboards even today -- clearly less than half have them -- when it is such a useful interface.

Just ordered a hat for my Raspberry Pi with optical out, with a plan to make that my main music streamer. Excited to see if that works out!

adrianmonk 3 hours ago|||
I wish Mini-TOSLINK[1] had been more successful. It's allows you to put an optical and electrical audio output on the same 3.5mm connector (i.e. headphone port), which is helpful for saving space on crowded panels.

The trick is that your 3.5mm connector only needs to connect on the sides, so the end of the jack can be open for light to be transmitted.

This was seen pretty frequently on laptops for a while, but I think two things doomed it. One, most people just don't use optical. Two, there's nothing to advertise its existence. If you do have one of these ports, you probably don't even know you could plug an optical connector in there.

---

[1] https://en.wikipedia.org/wiki/TOSLINK#Mini-TOSLINK

pyrolistical 6 hours ago|||
Ditto. It’s is hard to find non-wifi motherboards with toslink.

All the cheap boards have neither. Most of the high end boards have both

distances 5 hours ago||
I updated my computer this year, and didn't find anything without wifi either. So it seems it's a small tax you just have to pay now.
gwbas1c 3 hours ago|||
I can hear when my Dell laptop uses the flash drive heavily. It sounds kind of like a hard drive, so I actually had to verify that I have a flash chip. Apparently it's a known issue; I've assumed that something in it vibrates due to EMF.
cogman10 1 hour ago||
Noise is caused by changes in current. Any pulse of current will ultimately create EMF.

If power lines run anywhere near the sound lines, you are just asking to pick up interference whenever the computer does basically anything. It doesn't take too much of a pulse to be picked up. For a 3.5 jack, the voltage is anywhere from 0.002 to 0.5V. Even a pretty small induced voltage will be audible.

bogwog 7 hours ago|||
Maybe I have sensitive hearing, but I encounter this frequently on machines from all manufacturers. It is very much still a problem today.
kace91 4 hours ago|||
I hear my second hand dell XPS laptop running fedora when I scroll through dropdown lists.

It sounds exactly like the reads on a physical hdd, which is silly because it has an SSD. Haven’t figured out what it is yet.

ivanjermakov 1 hour ago||
My XPS does something similar. Faint 50Hz chirping (coil whine?) when I move objects in Blender. Never encountered audio interference though.
0xc0ff338 3 hours ago|||
I get fairly audiable coil whine when scrolling websites.
tecleandor 7 hours ago|||
Happens to my Lenovo X390, specially with disks writes...
azraellzanella 7 hours ago||
I get this on my MacBook M1, I "hear" some websites "static"
PunchyHamster 9 hours ago||
It's funny that apparently "high performance" DAC doesn't handle the common issue every single USB audio device have to worry about - noisy power. From the vendor page (on MODI 5, no idea which one author has).

> SPECS THAT MATTER

> Distortion: inaudible; 100-1000x lower than any transducer (speaker or headphone) you're using > Noise: inaudible; far below a typical headphone or speaker amp

TazeTSchnitzel 8 hours ago||
The fact audiophiles talk about “DAC”s is really telling. Transparent digital-to-analogue conversion is a solved problem. Any computer or smartphone worth a damn has a DAC whose output is indistinguishable to the human ear from anything “better”.

The truth is that DAC is not the problem… everything else in the analogue audio chain is. Amplifiers are messy analogue devices. Speakers and headphones are incredibly messy analogue devices. Power supplies and power conditioners are messy analogue devices. And noise is not down to any one component, but is a whole-system design problem. A particularly cool thing about power supplies is that they often create noise that will be picked up by other devices on the same circuit.

Of course, when people are buying a “DAC” they are really buying a box of some kind that also includes an amplifier, but this naming choice surely contributes to people paying attention to the wrong specs.

amlib 2 hours ago||
I agree that you can have cheap and great DACs nowadays that far exceeds what a consumer needs but some manufacturers still insists in putting less than ideal ones, or fumbling their implementation, in all sorts of device. I've got a computer with a fairly recent motherboard that I'm using for an htpc and the audio output is much noisier and produced a less punchy bass than the now 20 year old (!) X-fi sound card I've been using for... 20 years. Too bad, I wanted to give it a respite but I guess It's gonna keep trucking for at least another decade.

I then proceeded to investigate that by using REW to produce measurements of each output and the findings confirmed my hearing, the motherboard audio was outputting 5db less, plus a noise floor 15 db higher than the x-fi, resulting in 20db of extra noise (When you compensate with 5db extra at the amp). The resulting frequency response also revealed a much more aggressive high pass filter, I was actually getting another -3db@30hz compared to the x-fi confirming where the lack of "punchiness" was coming from. And then the cherry on the top was that all the extra channeles (surrdound/sub/center) had an even more aggressive highpass filter, they cheapened out on the cheapening out, probably assuming you are not gonna use more than stereo.

Here is the graph, red is x-fi outs and green is motherboard outs: https://i.imgur.com/dxoLXJO.png

Obviously this is just my anecdote, but I suspect this is very widespread.

EDIT: Oh and I haven't even talked about the line-ins! It's pretty much unusable in ALL motherboard audio I've cared to try. There is some insane noise gating and AGC going on to try and mask the fact that they use some really low bit depth ADCs with terrible dynamic range. Meanwhile I can capture pristine audio from my n64 into the x-fi no problem.

pier25 8 hours ago|||
> 100-1000x lower than any transducer

This seems like a lot but it's only 20-30db lower than whatever reference they're using.

This is the spec that really matters: THD+N: 0.0003% which is roughly -110 dB. It's very good and completely inaudible but not exceptional these days.

Kirby64 7 hours ago||
THD+N is irrelevant for the issue the author is describing, through. You need to spec PSRR (power supply rejection ratio). Many individual ICs do not spec this, and pretty much every system does not spec this.
pier25 7 hours ago||
Indeed. I was only commenting on the 100-1000x claim.
kevindamm 9 hours ago||
The source is electrical noise, but the solution of isolating the audio chain from the computer's USB means that in the future you might not notice when you've introduced another GPU memory bandwidth hog into your rendering loop.

Good story, though.

PunchyHamster 9 hours ago||
Just attach a scope to your power lines, boom, live feedback on what your renderer is doing.

I wonder if that will be next fad in PC building, just putting live power line graph on the screen inside

kevindamm 8 hours ago|||
replace the scope with a dimmable light and we might have a better solution than low-decibel audio hum

or perhaps live wire into the seat, tied into a transistor on this signal, so if performance drops enough you're sure to be alerted to it

ZeWaka 2 hours ago|||
Honestly, would be a sick mod for the upcoming configurable Steam Machine front face.
jraph 9 hours ago||
That might be the strongest spacebar heating workflow situation I've actually run into so far

https://xkcd.com/1172

ivanjermakov 1 hour ago||
First thing that came to my mind when I read it!
klamann 8 hours ago||
I've been using optical connections for audio on my gaming PCs for decades now, exactly for this reason. Though wireless headphones will work just as well these days. Too many game developers mess this up (e.g. by having no frame limiter in the game menu) and many of them never fix these kinds of issues. Thanks for caring and fixing this in your game!
diath 9 hours ago||
> A picking texture is a very simple idea. As the name says, it’s used to handle picking in the game, when you click somewhere on the screen (e.g. to select an unit), I use this texture to know what you clicked on. Instead of colors, every object instance writes their EntityID to this texture. Then, when you click the mouse, you check what id is in the pixel under the mouse position.

Unrelated, but why? Querying a point in a basic quad tree takes microseconds, is there any benefit to overengineering a solved problem this way? What do you gain from this?

rcxdude 9 hours ago||
It aligns with what appears on the screen accurately and without needing any extra work to make sure there's a representation in a tree that's pixel-accurate. It's also pretty low overhead with the way modern GPU rendering works.
diath 9 hours ago||
What if you have a collision system where collision filters can exclude collisions based on some condition in such a way that their bounding boxes can overlap? For instance an arrow that pierces through a target to fly through it and onto another target? How do you accurately store the Entity ID information for multiple entities with a limited number of bits per pixel?
pacificat0r 8 hours ago||
Entities that can't be picked, don't write to the texture, entities that can be picked, write to the texture their id. Whatever is closer to the camera will be the id that stays there (same as a color pixel, but instead of the object color you can think object id). So you are limited at one ID per pixel, but for me that works.
saltcured 16 minutes ago||
Right, it's the same z-buffer problem of deciding what pixel color is visible, with a non-blending buffer update mode.

To be totally coherent, you have to draw the entity ID in the same order you would draw the visible color, in cases where entities could "tie" at the same depth.

pacificat0r 9 hours ago|||
Well, it's significantly easier to implement than a octree. Game is actually 3D under the hood, projected at a careful angle to look isometric 2D.

The reason the game is 3D has to do with partially visible things being way easier than with isometric textures layered in the right order.

Also, now that i just grab a pixel back from the GPU, it's no overhead at all (to construct or get the data for it).

ZeWaka 2 hours ago||
I assume for the picking system you're rendering each entity/block as a different color (internally) and getting the pixel color under the mouse cursor?
matja 7 hours ago||
A point in screen space is a line in world space after inverse camera projection, so this way you get the line-to-closest-geometry test in O(1), after the overhead of needing to render the lookup texture first.
LM358 9 hours ago||
Not at all surprised to see that it's a Schiit DAC causing this problem
ShipEveryWeek 9 hours ago||
What’s with the animosity towards Schiit? They seem to make decent products. Noise from using USB power delivery for audio devices is common.. that’s why you can (and should) use the dedicated power input to you DAC/amp
LM358 8 hours ago|||
>They seem to make decent products

I don't agree with that sentiment. Their designs are subpar and the quality of the soldering is (maybe was) unacceptable:

https://www.audiosciencereview.com/forum/index.php?threads/h...

https://www.audiosciencereview.com/forum/index.php?threads/b...

The above review specifically goes into the problem from OP.

There's also their amplifier with a rather non-standard architecture that tries to solve a non-problem (injecting feedback in a NFB loop - I might remember wrong, if so, forgive me) which leads to it measuring double digit (!) THD if you feed it a sine wave. I'm not an experienced engineer but it is IMO a non-starter to have an amplifier try to decide what is and isn't a musical signal as part of its protection circuitry, short of detecting DC offsets or shorts (pun not intended). I'm not in the market for a 1800$ amplifier that goes bzzzt if you feed it music it disagrees with [1]

https://www.stereophile.com/content/schiit-audio-ragnarok-in...

>Noise from using USB power delivery for audio devices is common.. that’s why you can (and should) use the dedicated power input to you DAC/amp

I don't disagree with your point. However, a company designing products like these should be able to design a filter for this usecase unless you're trying to use your DAC as a a measuring device, or there is something seriously wrong with your motherboard. I honestly haven't heard of any other brand product with this problem unless it's ~20 years old and in need of repair. It doesn't cost much in the BOM, however it does cost in engineering hours/competence and QA and this is something that should have been caught by the latter.

[1] https://www.youtube.com/watch?v=NzMbY4sZvIw

Edit: I just want to add that I don't want to hate on Schiit. Honestly I'd like new audio companies to succeed and I applaud them for rejecting MQA back in the day and for not going all-in on the audiofool bullshit one sees too much of. But seeing such poor engineering and QA leaves a sour taste in my (electronics engineering) mouth. Maybe they have improved lately, I wouldn't know. I'm not really in their market anyways.

scrlk 6 hours ago|||
Schitt did step up their engineering and quality in the last few years, in response to Amir/ASR reviews.

E.g. https://www.audiosciencereview.com/forum/index.php?threads/s...

> No doubt you have noticed my frequent use of terms "nice" and "excellent" and that sums up the performance of Modi+. At this price point, we don't expect objective perfection but competent engineering and that is what we have. Physically, the unit is solidly built and of course supported by an English speaking US company. For people with such preference, the Modi+ provides an excellent option. That they can stay competitive with far east audio companies is definitely a feather in their cap.

> I am going to recommend the Schiit Modi+ DAC. Great to see Schiit continue the (new) tradition of optimizing objective performance as they cater to their traditional audience.

pacificat0r 8 hours ago|||
Wow, that's exactly what I have, a MODI 2. Time for a change I guess
LM358 8 hours ago||
Look, if it works for you and you're happy with it - keep it. More power to you.

I just know that if I handed over something with such shoddy soldering to a customer, I'd lose my job or at the very least lose soldering privileges. But I am working with things that cost slightly more than 99$ that you can't find on store shelves :)

ge96 9 hours ago|||
That's funny it's actually named Schiit I thought that was a joke
Fire-Dragon-DoL 9 hours ago|||
I'm not sure if you are joking around the sound of the brand name, or complaining about the actual brand
fbd_0100 9 hours ago|||
why do you say that? I used a Schiit Bifrost for many years without issue
nickdichev 9 hours ago|||
Why is that? I’ve generally only seen positive feedback on their stuff
tristor 8 hours ago||
Schiit Audio makes great stuff, I've been using it for years and have other gear as well to compare to. I think it's good for what it is, although their pricing has gone a bit out of control lately. The problem here is not the maker of the DAC, it's that it's bus powered over USB, which is a problem regardless of who makes it.
pfcd 3 hours ago||
> I am working on an isometric game inspired from Gnomoria, RimWorld, Dwarf Fortress, etc.

That sounds interesting. Could you elaborate further?

asimovDev 9 hours ago||
I have a similar issue with Genshin on PS5 when using the headphone jack in the controller with IEMs (didn't happen with a headset). It starts buzzing in my left ear when I open the game menu or open the map. On the map it only buzzes when I move the cursor, interestingly enough. I later noticed that the PSU coil whine coincided with the same events. Still no idea why it's like that

Thankfully doesn't happen with an external DAC.

embedding-shape 9 hours ago||
> On the map it only buzzes when I move the cursor, interestingly enough

Sounds like the game is doing more when the cursor moves around, they're probably checking for where the cursor is, and something is making the CPU/GPU do a bunch of extra work, which finally triggers the coil whine when the PSU is more heavily used.

I've basically had the same issue with Nvidia cards since the 2080ti started doing coil whine as soon as I opened Unreal Engine. Some programs trigger different sounds, depending on how much/well they use the GPU, and I've had the literal same experience with "hovering with my mouse over element X triggers coil whine" multiple times before.

trillic 8 hours ago||
They connected the headphones to a wireless controller. The wireless controller doesn't have a GPU.
glitchc 5 hours ago|
Reading through your post, it's likely the noise sourced from the network cable is coupling into your headset cable. Check how close those cables are to each other If you're using a USB port at the back for your DAC, try switching it to the front. The noise can also come from the power supply which couples into the motherboard's ground plane and shows up on all USB ports.
More comments...