JSep is a highly experimental work-in-progress Enterprise-128 emulator written in JavaScript for decent, modern browsers. It's my attempt to create an Enterprise-128 emulator using only web techologies.
The problem: http://stackoverflow.com/questions/24907738/webaudio-with-firefox-onaudioprocess-callback-is-not-called.
URL is
http://ep.lgb.hu/jsep/demo.new/?sound=yes. You must click on the "run"
button to start the emulation. You should hear some keyboard
click feedback especially if you hold a key for longer time. You can also
use the PING
IS-BASIC command inside the emulator to create a sound.
The sound quality is known to be awful, and subject of over/underflow of the
audio buffer, but it's a known problem of mine. The real problem:
no audio with firefox, but works with chrome. It seems firefox does not even
call the callback registered with .onaudioprocess
. My
only problem now to be able to produce any sound with Firefox
as well, not only Chrome.
Beware, the source of the emulator is a mess. Honestly it's a project for me to learn JavaScript and "modern" web technologies ... It will need a major re-construction soon.
Relevant source files:
enterpriseInitEmulation()
, near the end of the function.
audioPlay()
, called by clicking on the "run" button,
emulator()
, the actual "main" function which re-executes
itself with setTimeout()
.
processAudioJavaScriptCallBack()
at the end of the file, it's
the callback registered with audioNode.onaudioprocess
.