Comments (10)
Try the same rom on a personal computer, and check the devtools console output.
from webretro.
I used same website, same file, worked on a personal computer but still not the school computer. What do you mean by devtools console output, like the thing in inspect element?
from webretro.
Yes. Chances are the school computer ran out of memory.
from webretro.
I'm not 100% sure that's the case because the same emulator, on the official website, that is the one in the description, was working perfectly fine. I tried it like a week ago, and it worked. There was no like computer update that could have changed anything.
from webretro.
Yes. Chances are the school computer ran out of memory.
this error is the RA (sound) stop! RA.context.state != "running"
The current fix is:
function _RWebAudioStart() {}
change
function _RWebAudioStart() {
Module.pauseMainLoop();
if(RA.context && RA.context.state != "running") return mobileAudioRun(RA);
}
var ElmRA;
function mobileAudioRun(RA){
if(!ElmRA){
ElmRA = document.createElement('div');
ElmRA.style.cssText = `
position: fixed;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
`;
ElmRA.innerHTML = `<h1 style="position: absolute;margin:auto;width:200px;60px">click run</h1>`;
ElmRA.addEventListener('pointerdown',e=>{
ElmRA.hidden = true;
if (RA.context) RA.context.resume();
if (!RA.context || RA.context.state != 'running') {
RA.bufIndex = 0;
RA.bufOffset = 0
var ac = window["AudioContext"] || window["webkitAudioContext"];
if (RA.context) {
RA.context.close();
delete RA.context;
}
RA.context = new ac;
RA.numBuffers = M.latency * RA.context.sampleRate / (1e3 * RA.BUFFER_SIZE) | 0;
if (RA.numBuffers < 2) RA.numBuffers = 2;
for (var i = 0; i < RA.numBuffers; i++) {
RA.buffers[i] = RA.context.createBuffer(2, RA.BUFFER_SIZE, RA.context.sampleRate);
RA.buffers[i].endTime = 0
}
RA.nonblock = false;
RA.startTime = 0;
RA.context.createGain();
RA.setStartTime();
RA.context.resume();
}
Module.resumeMainLoop();
})
}
ElmRA.hidden = false;
}
from webretro.
How you be able to fix this in a chromebook?
from webretro.
probably the easiest way is:
- make your own fork
- fix it there
- deploy that version to your own github page
from webretro.
i explained how to here #75 (comment)
from webretro.
^
from webretro.
i explained how to here #75 (comment)
This worked. Thanks
from webretro.
Related Issues (20)
- how do i fast forward? HOT 2
- Major performance increase Audio Fixes HOT 4
- Project Status HOT 3
- States HOT 2
- 6.5.1 ideas HOT 1
- Embedding HOT 25
- suggestion: make a separate repo for 6.4 HOT 3
- Question HOT 5
- How do you save changes on the app? HOT 2
- How would I go about making a citra file? HOT 1
- Speed Up/Frame Throttle Not Working
- Sonic colors HOT 12
- question
- Will you add a xbox 360 core??? HOT 3
- Question HOT 2
- Building Core
- Error 0 HOT 4
- HOW DO I SAVE MY SETTINGS AHHH HOT 1
- Load local/server PSX BIOS file? HOT 1
- Stuck on loading screen each time I insert a rom HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webretro.