#5862 - peltazoid - Sun May 11, 2003 1:25 am
after reading the few articles on sound coding, i'm trying to get the irq mode to work.
the code is based on belogics directsound code.
but the sample i play is distorted, sometimes it corrects its self near the end?
the sample has been saved at 16386Hz, i'm using the 1024 cycle clock.
the interrupt handler copies the next 32bit word into the fifo buffer every 4 cycles.
conversly my dma code works fine, noise, perfect output.
i can not test this on hardware as yet. i'm using vba 1.5 as my emulator.
any suggestions, also whats the best way to play back samples? dma or irq? timing i take synching to vblank is a good method?
Cheers,
the code is based on belogics directsound code.
but the sample i play is distorted, sometimes it corrects its self near the end?
the sample has been saved at 16386Hz, i'm using the 1024 cycle clock.
the interrupt handler copies the next 32bit word into the fifo buffer every 4 cycles.
conversly my dma code works fine, noise, perfect output.
i can not test this on hardware as yet. i'm using vba 1.5 as my emulator.
any suggestions, also whats the best way to play back samples? dma or irq? timing i take synching to vblank is a good method?
Cheers,