Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Play sounds when button is pushed #10

Closed
5 tasks done
brianchirls opened this issue Feb 27, 2017 · 0 comments
Closed
5 tasks done

Play sounds when button is pushed #10

brianchirls opened this issue Feb 27, 2017 · 0 comments
Assignees

Comments

@brianchirls
Copy link
Member

brianchirls commented Feb 27, 2017

Depends on #8 and #6, though I can get started with temp buttons/sounds.

  • Load sounds - probably as buffers into Web Audio API since we can play them with less latency than from Audio Elements
  • Generate buttons (and load button icons if provided)
  • Play each sound when appropriate button is pushed
  • Record time of sound start
  • Play back sound at the appropriate time

For now, the sounds will not be spatialized. If we have time, we can try placing them at the center of the stage or maybe in stereo from virtual speakers on either side. But it's probably not worth it.

@brianchirls brianchirls self-assigned this Feb 27, 2017
This was referenced Feb 27, 2017
brianchirls added a commit that referenced this issue Feb 28, 2017
- Load sounds as buffers via XHR
- Generate buttons (temp style pending #8)
- Play sound when button pushed
- Temp sounds pending #6
brianchirls added a commit that referenced this issue Mar 5, 2017
- Move button creation out of `SoundEffect`
brianchirls added a commit that referenced this issue Mar 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant