Mail Archives: djgpp/1999/02/25/05:54:13
> Hi!
>
> I need a simple and easy tutorial on DMA-programming for Soundblaster.
>
> Fozzie
>
>
Ahem... DMA programming in Protected Mode... that's painfully...
Well, I'm finishing a SoundBlaster multichannel sound system for
DJGPP, you can rip the DMA stuff from there...
Anyway, here is a tip for you:
Allocate some DOS memory for DMA transfer. The DMA chip doesn't know
anything about DPMI mem or virtual memory, so DOS mem is the best and
easiest way. Next, the DOS memory block shouldn't be greater than 64k.
VERY IMPORTANT: The memory block MUST NOT be between two DMA pages.
DOS segment & offset: 4000:34CF
Linear address: 434CF
DMA page & offset: 4:34CF
A good solution is to allocate a memory block which is two times
bigger than needed.
+-----------------------------------------------------+
| Carlos Giani_AEN2003, PC-Club (M2003) |
| TGM - Schule der Technik, Abteilung Elektronik |
| |
| During holidays or weekends use this email-address: |
| darkvale AT fcmail DOT com |
+-----------------------------------------------------+
- Raw text -