delorie.com/archives/browse.cgi | search |
From: | "Ghalos" <greg AT holdridge7 DOT freeserve DOT co DOT uk> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Sound DMA |
Date: | Wed, 22 Dec 1999 11:09:51 -0000 |
Organization: | Customer of Planet Online |
Lines: | 20 |
Message-ID: | <83qb6n$9ta$1@news7.svr.pol.co.uk> |
NNTP-Posting-Host: | modem-51.francium.dialup.pol.co.uk |
X-Trace: | news7.svr.pol.co.uk 945860631 10154 62.136.43.51 (22 Dec 1999 11:03:51 GMT) |
NNTP-Posting-Date: | 22 Dec 1999 11:03:51 GMT |
X-Complaints-To: | abuse AT theplanet DOT net |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.5 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
I'm trying to get sound working under DJGPP and so I have to figure out how to use the DMA. I have managed to get enough info to sort out which ports to send what to in order to get auto-initialised DMA up and running (32k buffer, interrupt called every 8k) I have also looked at some example code and the FAQ.... Now the problem I am having is to get the interrupt written. I know-ish how to write interrupt funcitons in general... I have a functioning (and stable!) keyboard handler BUT this is a bit more difficult. I have two buffers... one mixing buffer in protected mode memory and a copy of it for the DMA buffer in DOS memory... what I want to know is... assuming I have locked both of these buffers and the handler function.... is it safe to use functions like memset() and dosmemput() in an interrupt handler.... do I need to lock them? how do I do it? thanks a lot, -- Ghalos - greg AT holdridge7 DOT freeserve DOT co DOT uk
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |