Use-sound

Dev tools

react hook library

SHOW HN2020

131points
31comments
#472of 3,028 in 2020
Top 16%of 2020 by points

How HN took it

DebatedReal support and real criticism

5 positive, 9 neutral or asking, 0 mixed, 5 critical, out of 19 comments about the project. Thread score -0.01.

Design: 3 for, 3 againstIdea: 2 for, 1 againstPerformance: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Nice showcase website and design

    From 3 comments
    • I've been following your site for a few weeks, and I just love it. The design, the writing, the interactive examples, the little sounds... it's all so thoughtful! I'm thinking of…
      mtm7 on HN
    • Really cool. Also, the showcase website is made really well, kudos.
      spidersandstuff on HN
    • This is really cool & you have a great website! The one thing I don’t quite understand is why this needs to be a React hook per se - couldn’t it just be a normal library function…
      jacobsimon on HN
  • Fun for building small games with sound

    From 2 comments
    • God forbid I want to create a little game with sound effects using React. This is a great little tool!
      hazz99 on HN
    • Yeah! And I love that we can explore every nook and cranny without a lot of "oh wow why would you ever want this?!" Stuff like this is super useful for the countless non-standard…
      Waterluvian on HN

Objections

  • Sound on the web is annoying and hostile to users

    From 3 comments
    • This is cool but, oh boy, a mute button that makes a sound when you click it is user hostile.
      timharding on HN
    • I wish I could think of a leveled way to speak my mind but gosh, there's something about all this that really makes me want to throw up. The idea of adding a tiny little button…
      d33 on HN
    • I run all tabs muted by default - I find sound effects on the web to be rather frustrating. Especially combined with autoplay.
      xfitm3 on HN
  • Mute button that plays a sound is user hostile

    From 1 comment
    • This is cool but, oh boy, a mute button that makes a sound when you click it is user hostile.
      timharding on HN

Requests

  • Source code is hard to find in the npm package

    From 1 comment
    • I was hoping to see the source for the lib, but I can't find it in the npm package listing. Anyone manage to track it down?
      desert_boi on HN

Questions

  • Why it must be a hook rather than a plain function

    From 1 comment
    • This is really cool & you have a great website! The one thing I don’t quite understand is why this needs to be a React hook per se - couldn’t it just be a normal library function…
      jacobsimon on HN
  • Concurrent mode behavior of volume updates in effects

    From 1 comment
    • Not to nitpick, but I'm wondering about the tradeoffs of adjusting volume/playback rate in an effect (https://github.com/joshwcomeau/use-sound/blob/master/src/index.ts#L75). I'm…
      bennyg on HN
  • Why return values are in an array

    From 1 comment
    • Could some one clarify for me why the consts for the useSound() are declared inside an array? const [play] = useSound()
      vcoelho on HN
  • Does not work on iOS Safari

    From 1 comment
    • Ok not working on iOS safari for me, but that’s not your fault... I had a howler based app that seemed to work 6 months ago and after some update stopped working on iOS (no more…
      quickthrower2 on HN

Alternatives named

  • Howler library

    From 1 comment
    • Ok not working on iOS safari for me, but that’s not your fault... I had a howler based app that seemed to work 6 months ago and after some update stopped working on iOS (no more…
      quickthrower2 on HN
  • CSS-only or emoji approaches

    From 2 comments

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/22729860)