Date: Tue, 01 Jul 1997 02:33:09 -0600 From: xorxe AT asturies DOT org Subject: Re: Sound Programming Newsgroups: comp.os.msdos.djgpp Message-ID: <867741494.19783@dejanews.com> Reply-To: xorxe AT asturies DOT org Organization: Deja News Usenet Posting Service References: <867335240 DOT 19683 AT dejanews DOT com> <2p$eeMA5lsszEwxm AT talula DOT demon DOT co DOT uk> Lines: 28 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Shawn Hargreaves wrote: > The other thing I occasionally encountered on slow machines is that my > ISR would get out of sync with the DMA transfer. I have no idea why this > might be (missing interrupts every now and then?) but it was only a > problem when using auto-initialised DMA: you didn't post enough code for I'm using auto-initialised DMA, so this seems to be my problem... Do you know if I could solve this by translating all the ISR code to assembly? Or do you think this doesn't solve the sync problems? > me to see if you are doing that. If so, I found an easy solution was > just to poll the DMA position every now and then to check I was still in > sync with it, and flip my buffer counter if anything had gone wrong. A > nasty kludge, but it make things more robust... ok, but where you poll the DMA position? on the ISR? How do you sync the transfer when something go wrong? I'd wish you give me a more detailed explanation or where to look for more information on this topic. thank you very much Shawn --- xorxe AT asturies DOT org -------------------==== Posted via Deja News ====----------------------- http://www.dejanews.com/ Search, Read, Post to Usenet