• @Trashcanman@lemmy.world
    link
    fedilink
    English
    42 years ago

    I’m curious about this too. Maybe they are listening with headphones? I have no idea if they make them like this but it seems like an opportunity for white noise machine makers to just add Bluetooth and they would sell more. Maybe?

    • @mindbleach@lemmy.world
      link
      fedilink
      English
      122 years ago

      White noise is literally random numbers. Your machine can do it using approximately zero percent of its available resources.

      In a very real sense, any single transistor can do it, and computer engineering is an effort to keep them from doing it.

        • @LibertyLizard@slrpnk.net
          link
          fedilink
          English
          42 years ago

          I’ve never had any of these problems personally. Not that I have anything against white noise machines but that’s why people see them as superfluous. They kind of are.

          But maybe if you have spotty internet that makes sense.

    • @jmp242@sopuli.xyz
      link
      fedilink
      English
      82 years ago

      There are apps that can make white noise while using 0 network really. If I was Spotify I’d write a library into the app that detected white noise and stopped streaming, and just turned on the local generator in their app.

      • @mindbleach@lemmy.world
        link
        fedilink
        English
        12 years ago

        I’d have a Javascript one-liner producing white noise, except web audio is a Gordian knot of inscrutable identical-sounding types and contexts and maps and whateverthefuck. Documentation reads like they forgot to implement it and hoped nobody would notice.

        How do you generate noise? Well you need a sink. How do I get a sink? Well you need an event. How do you get an event? Well you need a processor. How do you get a processor? Well you need a context. How do you get a context? Well you need a node. How do you get a node? Well you need a sink. I’m going to stab you now. Understandable.

        • @mindbleach@lemmy.world
          link
          fedilink
          English
          1
          edit-2
          2 years ago

          Anyway it’s something like data:text/html,{script} ac = new AudioContext(); wn = ac.createScriptProcessor( 4096, 1, 1 ); wn.onaudioprocess = (e) => e.outputBuffer.getChannelData(0).forEach( (v,i,a) => a[i] = Math.random() ); wn.connect( ac.destination ); {/script} except with whatever dark wizardry makes output reach a speaker.

          Also I’m not sure .forEach works on whichever array-like type was chosen for audio channels. This stupid language has so many incompatible and incomplete array implementations.

          edit: And angle brackets on script and /script, because this stupid website fucked up its Markdown. Preventing random HTML strings in comments: excellent, necessary, obvious; it is not 1999 anymore. Doing so by deleting the entire goddamn thing as if you parsed it before removing it: DEEPLY TROUBLING.