• mech@feddit.org
    link
    fedilink
    arrow-up
    19
    ·
    3 days ago

    How about one that can damage your speakers and your ears, without root access?

    ls -R / | aplay
    
    • emotional_soup_88@programming.dev
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 days ago

      Haven’t checked my low level sound drivers in a long time - I’m using pipewire and wireplumber to control it all. Is ALSA still there at the bottom/as a dependency? Arch btw.

      • mech@feddit.org
        link
        fedilink
        arrow-up
        30
        ·
        edit-2
        3 days ago

        It doesn’t read it out.
        It just feeds the characters directly into your sound driver as raw data, which will play it as a cacophony of noise at max volume, with no regard for your speakers’ frequency limitations.

          • nocteb@feddit.org
            link
            fedilink
            arrow-up
            9
            ·
            3 days ago

            Pull the master slider in alsamixer. I don’t think it will break anything anyway (except your ears if it’s loud). Most audio outputs are AC coupled meaning they will filter out DC and very low frequency which is the most dangerous part for a speaker.

        • squaresinger@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 days ago

          I’d be very surprised if that was able to damage your speakers. If it could, then so could any sound you play. It would have to be an exceptionally bad design if playing a youtube video could destroy your speakers.

      • nocteb@feddit.org
        link
        fedilink
        arrow-up
        5
        ·
        3 days ago

        No it interprets the list of filenames as raw sound data which basically makes random noise maybe with a few bleeps when there are patterns