TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Watt The Fox?

346 pointsby h43z3 months ago

14 comments

padenot3 months ago
This is planned, and important, and we&#x27;ll fix it hopefully soon, it&#x27;s long overdue. I&#x27;m sorry this hasn&#x27;t happened yet, it&#x27;s always a game of priorities that can never satisfy everybody on time. It however ranks fairly high on my personal list.<p>As one could imagine it&#x27;s a bit (read: a lot) more complicated than just pausing the AudioContext after some time of silence, but we&#x27;ll get it fixed regardless, it&#x27;s possible because others did it. There are tradeoffs we&#x27;re willing to do.<p>Source: Firefox implementer of a lot of things around this, editor of the Web Audio API standard.
评论 #43063839 未加载
评论 #43063774 未加载
评论 #43066602 未加载
评论 #43064594 未加载
评论 #43063226 未加载
评论 #43071780 未加载
评论 #43067177 未加载
评论 #43067522 未加载
评论 #43064516 未加载
评论 #43070633 未加载
评论 #43064661 未加载
评论 #43064070 未加载
评论 #43063832 未加载
评论 #43065364 未加载
评论 #43063638 未加载
评论 #43068209 未加载
评论 #43066330 未加载
评论 #43066396 未加载
mike_d3 months ago
The websites opening an audio context without using it to play anything are probably doing bot detection.<p>Different browser engines and operating systems implement audio processing differently, so if you play a completely inaudible sound and then record it back (from the API not the microphone) you end up with a signature.<p>You can use that signature to see if the browser is lying about its user agent, running in headless mode, or all sort of other interesting edge cases that are not a real user buying widgets.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;fingerprintjs&#x2F;fingerprintjs&#x2F;blob&#x2F;3201a7d61bb4df2816c226d8364cc98bb4235e59&#x2F;src&#x2F;sources&#x2F;audio.ts">https:&#x2F;&#x2F;github.com&#x2F;fingerprintjs&#x2F;fingerprintjs&#x2F;blob&#x2F;3201a7d6...</a>
评论 #43064906 未加载
评论 #43063993 未加载
评论 #43063392 未加载
pianom4n3 months ago
Wow, this white noise has been driving me crazy for a long time but I could never track it down.<p>The tab doesn&#x27;t show the &quot;playing&quot; icon, and muting the tab doesn&#x27;t stop the noise.<p>Even using the Windows volume mixer to mute Firefox doesn&#x27;t stop the noise.<p>Edit: The addon is actually pretty bad for a desktop user since the white noise starting&#x2F;stopping constantly is far more annoying.
评论 #43064208 未加载
评论 #43068232 未加载
cosmotic3 months ago
If the output idles, digital SPDIF signals lose sync. Re-syncing once playback starts is not instant, and you lose the first second of audio or so. I wrote a program that kept open an output withought dumping any data to the line, just to prevent the output from idling.<p>Doesnt make much sense in the context of a laptop though, so energy savings make sense there.
评论 #43064917 未加载
评论 #43064494 未加载
brilee3 months ago
Oh! I think this explains the issue I had on Android Firefox where every so often my phone would randomly consume 10gb&#x2F;day in data (costing me $stupid on phone bill). I believe a news site was playing audio and was loading new ads on repeat and the tab never went to sleep because of the audio! I had to switch to chrome because the repeating surprise data bills were becoming silly
lxgr3 months ago
I&#x27;ve noticed this, or something very similar (not sure if sites are keeping audio contexts open actually, or if this is Firefox-internal, as it also happens on Youtube and other sites not using the Web Audio API) on macOS a while ago too (i.e. an audio-induced power drain, but no white noise): <a href="https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=1821102" rel="nofollow">https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=1821102</a><p>Right now, coreaudiod on my Mac is at 20% CPU with nothing playing whatsoever :( I&#x27;m close to switching to another browser until this is fixed, as it&#x27;s really ruining battery life for me, but I really don&#x27;t want to give up Firefox over something seemingly so trivial.<p>Update: This seems to be a related but different bug.
DaleCurtis3 months ago
The code in Chromium which handles this suspension is here: <a href="https:&#x2F;&#x2F;source.chromium.org&#x2F;chromium&#x2F;chromium&#x2F;src&#x2F;+&#x2F;main:media&#x2F;base&#x2F;silent_sink_suspender.h" rel="nofollow">https:&#x2F;&#x2F;source.chromium.org&#x2F;chromium&#x2F;chromium&#x2F;src&#x2F;+&#x2F;main:med...</a><p>Basically after detecting silence for 30 seconds or so it switches from a sink backed by the OS audio device to a null sink.<p>Note: Since this uses a different clock than the audio device we have received some reports that when the context is finally used there can be some distortion at specific tones. The workaround is for sites to use the suspend resume API mentioned in the article.
Already__Taken3 months ago
I don&#x27;t know the ins-and outs of how audioContext is implemented but it&#x27;s got a lot in there to be very clever and dynamic, playing a notification chime seems like that feels like drawing an svg with D3 instead of img href *.svg. I wonder if there&#x27;s a serviceWorker hook that could register simple repeatable stuff like notification handlers much lower down on a more efficient API.
martin_a3 months ago
Should I be able to actually hear something?<p>Firefox 134.0.1 on MacOS here, I don&#x27;t hear anything.
评论 #43063336 未加载
评论 #43062862 未加载
kseistrup3 months ago
Thanks, this fixed the frontpage of <a href="https:&#x2F;&#x2F;www.dr.dk&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.dr.dk&#x2F;</a>
Traubenfuchs3 months ago
…why is a non suspended AudioCntext that is currently not playing anything emitting white noise though?
评论 #43066584 未加载
Jotalea3 months ago
I wonder if the same problem happens on Android devices too.
NooneAtAll33 months ago
I can already imagine &quot;websites control minds via barely-hearable noise&quot; conspiracies...
immibis3 months ago
Abstraction layers are hard and have bugs. We should probably figure out a way to reduce the number of abstraction layers. Maybe instead of running the software in a virtual machine with an OS abstraction layer (which is itself a shitty OS), it could compile directly to machine-language instructions and interact with your real OS. You could download this once and run it many times.
评论 #43068517 未加载