YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Checking for Compatibility - HTML5 Game Development

Get Embed Code
4 Languages

Showing Revision 6 created 05/25/2016 by Udacity Robot.

  1. So, as you can see here, we've wrapped our webkitAudioContext in a try-catch
  2. block, catching any exceptions, and opening an alert dialog box to let the
  3. player know that the Web Audio API is not supported in their browser. After
  4. this, we create a new gain node, and we connect it to our main node. Then, we
  5. connect it to our destination, which in most cases would be the speaker.