forked from dingusdev/dingusppc
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turns out to be on the critical path to getting boot. If we don't pull data from the audio DMA channel it appears to fill up and the boot process hangs very early. We would have just had a no-op read, but might as well actually send the data to the JS side. We use a 1khz polling loop, which is perhaps too frequent, but it works for now. The 6100 guitar chord startup chime now plays, but there is some glitching after, and then a continous hum. Polling for input also turns out to be on the critical path, since we need to consume the input buffer to get the "audio context running" flag sent from the browser process to the worker. We don't actually do anything with the input data yet. Updates mihaip/infinite-mac#219
- Loading branch information
Showing
2 changed files
with
90 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters