Aside of stuff like "it's alpha"? Is it something browser-side that can't be fixed or do you think audio choppiness can be eradicated?
pico-8 uses per-frame deterministic emulation.
This means that another "frame-worth" of audio is being generated on each frame together with drawing imagery on screen.
If the frame takes longer-than-needed to process, the browser will "run out" of audio to play before, resulting in a "chop" (silence before the frame).
Aside of not making the emulator lag, you can't do much about this.
I didn't realise the sound was choppy on some systems -- is there anyone else having this issue? If so, please take the time to comment with your system specs and browser version.
The code I'm using went through a number of iterations of QA at Mozilla while I was doing a demo of Voxatron for the Firefox default page, so I fear it can't be improved much for now! But it would be great to get some more data on the problem, even if anecdotal.
@darkhog -- is the choppy sound constantly bad? or just an occasional skipped 1/10th of a second?
pre-mixing sounds is a possibility, but sounds gets pretty large with music, and I don't want to lose the ability to dynamically generate audio during cart execution.
" @darkhog -- is the choppy sound constantly bad? or just an occasional skipped 1/10th of a second?"
Sometimes it's skip, sometimes it is consistently bad. My specs:
Intel Core2Quad Q9450 @2.66GHz
Windows 7 Ultimate x64
One thing to note is that I usually have quite few tabs open in FF. Like 10-20
For me, I've noticed that it's a little choppy in Chrome, but always fine in FireFox.
With that said, it was choppy in FireFox until I installed the latest Realtek audio drivers.
[Please log in to post a comment]