www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/04/16:24:04

Message-Id: <m0vrmVh-000S1iC@natacha.inti.edu.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT edu DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT natacha DOT inti DOT edu DOT ar>
Organization: INTI
To: djgpp AT delorie DOT com
Date: Tue, 4 Feb 1997 18:21:27 +0000
MIME-Version: 1.0
Subject: DMA problems under Win 3.1

Hello all:

  I have the following problem:

Situation: 
1) I'm runing in a Win3.1 DOS Box.
2) The Sound Blaster 16 drivers are installed in the Windows, so the DMA 
channels used by the board are virtualized, to avoid conflicts with the driver, 
by the SB drivers.

What I make?:
 I touch the DMA registers to make a DMA transfer to the SB 16 from my DJGPP 
program.

What happend?:
 Windows says that I violated the OS integrity.

Why is that a problem?:
  Because if I make the same from a 16-bits real mode program Windows doesn't 
make that, the SB drivers just understand that I'm using the board (because the 
DMA is virtualized) and if I try to reproduce sounds from Windows the drivers 
says that the device is in use by other application.
  So now the question is: Why in the hell I can do it from real mode and I 
can't from PMode.
  I know that I can workaround that calling to a real mode routine, but isn't 
so good.

  Any help (or explanation) will be appreciated.

SET

--------------- 0 --------------------------------
Salvador Eduardo Tropea (SET).
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019