Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneko committed Oct 24, 2024
1 parent a66b22c commit d655cfe
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion samples/Resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,6 @@ var REMOTE_PACKAGE_SIZE = metadata['remote_package_size'];
}

}
loadPackage({"files": [{"filename": "/CoreData.pak", "start": 0, "end": 698777}, {"filename": "/Data.pak", "start": 698777, "end": 48399819}], "remote_package_size": 48399819, "package_uuid": "sha256-aca32ca00b7c52dee8cd4d322c5bd4a02f239ca57e1090194fef6a815f2db4c7"});
loadPackage({"files": [{"filename": "/CoreData.pak", "start": 0, "end": 698777}, {"filename": "/Data.pak", "start": 698777, "end": 48408390}], "remote_package_size": 48408390, "package_uuid": "sha256-1c80ce9ae742db63094c2f72beb407c25f62b005e64a9af132d36b300bcb8a8a"});

})();
Binary file modified samples/Resources.js.data
Binary file not shown.
38 changes: 19 additions & 19 deletions samples/Samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,41 +551,41 @@ var tempI64;
// end include: runtime_debug.js
// === Body ===
var ASM_CONSTS = {
1945676: () => {
1946364: () => {
FS.syncfs(function(err) {
if (err) {
console.error(err);
}
});
},
1945740: $0 => {
1946428: $0 => {
var str = UTF8ToString($0) + "\n\n" + "Abort/Retry/Ignore/AlwaysIgnore? [ariA] :";
var reply = window.prompt(str, "i");
if (reply === null) {
reply = "i";
}
return allocate(intArrayFromString(reply), "i8", ALLOC_NORMAL);
},
1945965: ($0, $1) => {
1946653: ($0, $1) => {
alert(UTF8ToString($0) + "\n\n" + UTF8ToString($1));
},
1946022: () => {
1946710: () => {
if (typeof (AudioContext) !== "undefined") {
return true;
} else if (typeof (webkitAudioContext) !== "undefined") {
return true;
}
return false;
},
1946169: () => {
1946857: () => {
if ((typeof (navigator.mediaDevices) !== "undefined") && (typeof (navigator.mediaDevices.getUserMedia) !== "undefined")) {
return true;
} else if (typeof (navigator.webkitGetUserMedia) !== "undefined") {
return true;
}
return false;
},
1946403: $0 => {
1947091: $0 => {
if (typeof (Module["SDL2"]) === "undefined") {
Module["SDL2"] = {};
}
Expand All @@ -607,11 +607,11 @@ var ASM_CONSTS = {
}
return SDL2.audioContext === undefined ? -1 : 0;
},
1946896: () => {
1947584: () => {
var SDL2 = Module["SDL2"];
return SDL2.audioContext.sampleRate;
},
1946964: ($0, $1, $2, $3) => {
1947652: ($0, $1, $2, $3) => {
var SDL2 = Module["SDL2"];
var have_microphone = function(stream) {
if (SDL2.capture.silenceTimer !== undefined) {
Expand Down Expand Up @@ -652,7 +652,7 @@ var ASM_CONSTS = {
}, have_microphone, no_microphone);
}
},
1948616: ($0, $1, $2, $3) => {
1949304: ($0, $1, $2, $3) => {
var SDL2 = Module["SDL2"];
SDL2.audio.scriptProcessorNode = SDL2.audioContext["createScriptProcessor"]($1, 0, $0);
SDL2.audio.scriptProcessorNode["onaudioprocess"] = function(e) {
Expand All @@ -664,7 +664,7 @@ var ASM_CONSTS = {
};
SDL2.audio.scriptProcessorNode["connect"](SDL2.audioContext["destination"]);
},
1949026: ($0, $1) => {
1949714: ($0, $1) => {
var SDL2 = Module["SDL2"];
var numChannels = SDL2.capture.currentCaptureBuffer.numberOfChannels;
for (var c = 0; c < numChannels; ++c) {
Expand All @@ -683,7 +683,7 @@ var ASM_CONSTS = {
}
}
},
1949631: ($0, $1) => {
1950319: ($0, $1) => {
var SDL2 = Module["SDL2"];
var numChannels = SDL2.audio.currentOutputBuffer["numberOfChannels"];
for (var c = 0; c < numChannels; ++c) {
Expand All @@ -696,7 +696,7 @@ var ASM_CONSTS = {
}
}
},
1950111: $0 => {
1950799: $0 => {
var SDL2 = Module["SDL2"];
if ($0) {
if (SDL2.capture.silenceTimer !== undefined) {
Expand Down Expand Up @@ -734,7 +734,7 @@ var ASM_CONSTS = {
SDL2.audioContext = undefined;
}
},
1951283: ($0, $1, $2) => {
1951971: ($0, $1, $2) => {
var w = $0;
var h = $1;
var pixels = $2;
Expand Down Expand Up @@ -805,7 +805,7 @@ var ASM_CONSTS = {
}
SDL2.ctx.putImageData(SDL2.image, 0, 0);
},
1952752: ($0, $1, $2, $3, $4) => {
1953440: ($0, $1, $2, $3, $4) => {
var w = $0;
var h = $1;
var hot_x = $2;
Expand Down Expand Up @@ -842,19 +842,19 @@ var ASM_CONSTS = {
stringToUTF8(url, urlBuf, url.length + 1);
return urlBuf;
},
1953741: $0 => {
1954429: $0 => {
if (Module["canvas"]) {
Module["canvas"].style["cursor"] = UTF8ToString($0);
}
},
1953824: () => {
1954512: () => {
if (Module["canvas"]) {
Module["canvas"].style["cursor"] = "none";
}
},
1953893: () => window.innerWidth,
1953923: () => window.innerHeight,
1953954: $0 => {
1954581: () => window.innerWidth,
1954611: () => window.innerHeight,
1954642: $0 => {
try {
const context = GL.getContext($0);
if (!context) {
Expand Down
Binary file modified samples/Samples.wasm
Binary file not shown.

0 comments on commit d655cfe

Please sign in to comment.