Skip to content

Commit

Permalink
Fixed RTE in WebAudioPlugin during capabilities check when there was …
Browse files Browse the repository at this point in the history
…no WebAudio support (IE)
  • Loading branch information
lannymcnie committed Jun 29, 2017
1 parent 789e5a6 commit 4cd4bf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/soundjs/webaudio/WebAudioPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,9 @@ this.createjs = this.createjs || {};
s._createAudioContext = function() {
// Slightly modified version of https://github.com/Jam3/ios-safe-audio-context
// Resolves issues with first-run contexts playing garbled on iOS.
var AudioCtor = (window.AudioContext || window.webkitAudioContext),
context = new AudioCtor();
var AudioCtor = (window.AudioContext || window.webkitAudioContext);
if (AudioCtor == null) { return null; }
var context = new AudioCtor();

// Check if hack is necessary. Only occurs in iOS6+ devices
// and only when you first boot the iPhone, or play a audio/video
Expand Down

0 comments on commit 4cd4bf5

Please sign in to comment.