|
View Message | Back to Messages |
Plasma Wed Nov 3 2021 at 12:57 pm I recommend using DMA
It uses a lot less CPU and you can specify the sample frequency without needing accurate timing.
Here is a simple QB example with single-shot DMA (requires EMS):
http://www.phatcode.net/articles.php?id=208
If you want to do more advanced things like mixing you can set up a double buffer with auto-init DMA. Then SB will automatically play the buffer in a loop. But you will need an interrupt handler to update the buffer at the proper time.
|
|