aboutsummaryrefslogtreecommitdiff
path: root/src/library_sdl.js
diff options
context:
space:
mode:
authorILOVEPIE <thehairyrock@gmail.com>2013-03-24 10:04:26 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-24 16:56:44 -0700
commit6df56c0c5188f2316f75c414ccea9c3f735904ba (patch)
treed192939f8c311591cdc1e826a5565a106c98a2fe /src/library_sdl.js
parentdcbdbb420fe38fa173710d3de8adce9e684bf9b0 (diff)
Switched to single quotes for consistency.
Signed-off-by: ILOVEPIE <thehairyrock@gmail.com>
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r--src/library_sdl.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js
index 0e5a5df4..d292f753 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -1493,8 +1493,8 @@ var LibrarySDL = {
// Mozilla Audio API/WebAudioAPI
try {
SDL.audio.audioOutput = new Audio();
- SDL.audio.hasWebAudio = ((typeof(AudioContext) === "function")||(typeof(webkitAudioContext) === "function"));
- if(!SDL.audio.hasWebAudio&&(typeof(SDL.audio.audioOutput['mozSetup'])==="function")){
+ SDL.audio.hasWebAudio = ((typeof(AudioContext) === 'function')||(typeof(webkitAudioContext) === 'function'));
+ if(!SDL.audio.hasWebAudio&&(typeof(SDL.audio.audioOutput['mozSetup'])==='function')){
SDL.audio.audioOutput['mozSetup'](SDL.audio.channels, SDL.audio.freq); // use string attributes on mozOutput for closure compiler
SDL.audio.mozBuffer = new Float32Array(totalSamples);
SDL.audio.pushAudio = function(ptr, size) {
@@ -1505,12 +1505,12 @@ var LibrarySDL = {
SDL.audio.audioOutput['mozWriteAudio'](mozBuffer);
}
}else{
- if (typeof(AudioContext) === "function") {
+ if (typeof(AudioContext) === 'function') {
SDL.audio.context = new AudioContext();
- } else if (typeof(webkitAudioContext) === "function") {
+ } else if (typeof(webkitAudioContext) === 'function') {
SDL.audio.context = new webkitAudioContext();
} else {
- throw "no sound!";
+ throw 'no sound!';
}
SDL.audio.nextSoundSource = 0;
SDL.audio.soundSource = new Array();
@@ -1562,7 +1562,7 @@ var LibrarySDL = {
if (SDL.audio) {
try{
for(var i = 0; i<SDL.audio.soundSource.length;i++){
- if(!(typeof(SDL.audio.soundSource[i]==="undefined"))){
+ if(!(typeof(SDL.audio.soundSource[i]==='undefined'))){
SDL.audio.soundSource[i].stop(0);
}
}