1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-12-23 03:29:39 +00:00

better fix for VCS audio autostart

This commit is contained in:
Steven Hugg 2019-08-22 12:20:47 -04:00
parent 9b65e79968
commit 3a2df124eb
4 changed files with 6 additions and 12 deletions

View File

@ -129,17 +129,13 @@ TODO:
- show cur/tmp vram addresses
- NES crt should mark raster pos when debugging
- OAMDMA in profiler? (haltCycles)
- ca65 skeleton
- neslib.cfg nesbanked.cfg ZP segment is C64-ish, should use $00-$FF
- JSNES
- doesn't support hiding >8 sprites
- doesn't do sprite zero test right
- doesn't do clip right
- doesn't do b/w tint
- vcs
- sound doesn't start on Chrome (https://goo.gl/7K7WLu)
- make start after clicking in embed
- vcs sound continues when paused
- sometimes still plays when paused on FF
- vcs: INPTx needs to be added to control state
- vcs: break on # of lines changed (maybe using getRasterPosition?)
- chrome looks blurry on vcs
@ -156,7 +152,6 @@ TODO:
- test offline? (if window.firebase)
- Github
- platform_id/repo.platform mismatch (can't leave repository)
- gh-pages branch with embedded
- handle overwrite logic
- what to do about included files?
- can published files retain path?
@ -164,7 +159,6 @@ TODO:
- CORS for some blobs?
- don't import useless files
- support projects with subdirectories, file list?
- emulator needs reset shortcut for nes
- switching platform of a repo?
- make sure to flatten subdirs
- astrocade
@ -181,8 +175,7 @@ TODO:
- can't step back twice?
- compiler bug in chase
- "shared" in URL doesn't work, leave in URL? (also importURL)
- vicdual: delay is faster
- alert when skeleton file loaded or file not found
WEB WORKER FORMAT

View File

@ -69,8 +69,6 @@ class VCSPlatform extends BasePlatform {
var self = this;
$("#javatari-div").show();
Javatari.start();
// for Chrome autostart
Javatari.room.speaker.powerOff();
// intercept clockPulse function
Javatari.room.console.oldClockPulse = Javatari.room.console.clockPulse;
Javatari.room.console.clockPulse = function() {
@ -129,9 +127,12 @@ class VCSPlatform extends BasePlatform {
}
pause() {
Javatari.room.console.pause();
Javatari.room.speaker.mute();
}
resume() {
Javatari.room.console.go();
// for browser autostart
Javatari.room.speaker.powerOff();
Javatari.room.speaker.powerOn();
}
advance() {

View File

@ -206,7 +206,6 @@ export class GithubService {
sess.platform_id = m[1];
}
// bind to repository
// TODO: don't bind until successful first import
this.bind(sess, true);
// get head commit
return sess;

View File

@ -454,6 +454,7 @@ function importProjectFromGithub(githuburl:string, replaceURL:boolean) {
gotoNewLocation(replaceURL);
}).catch( (e) => {
setWaitDialog(false);
if (sess) getGithubService().bind(sess, false);
console.log(e);
alertError("<p>Could not import " + githuburl + ".</p>" + e);
});