4 ms·
> It wasn't even concurrent - every loop, just mix enough of the track to fill the buffer and write it. This probably works but the proper way to do it back th
by exDM69 10y ago
> It wasn't even concurrent - every loop, just mix enough of the track to fill the buffer and write it.
This probably works but the proper way to do it back then (and the way drivers work today) was to hook an interrupt that gets fired when the audio buffer needs to be filled.
So there's an element of concurrency in it since you don't know when the IRQ is going to fire. Synchronization was easier with single cores, though. Just disable interrupts and you're done.
- camperman 10y ago> This probably works No probably about it - it worked like a charm. > but the proper way to do it back then (and the way drivers work today) was to hook an interrupt that gets fired when the audio buffer needs to be filled. Which was much more trouble than it was worth when writing a 64k intro on a deadline.