delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/20/11:50:18

Message-ID: <379493EB.EA1C3898@geocities.com>
From: Sahab Yazdani <beyonder69 AT geocities DOT com>
X-Mailer: Mozilla 4.51 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: low memory allocation
Lines: 18
Date: Tue, 20 Jul 1999 11:21:15 -0400
NNTP-Posting-Host: 209.5.16.197
X-Complaints-To: abuse AT sprint DOT ca
X-Trace: newscontent-01.sprint.ca 932484144 209.5.16.197 (Tue, 20 Jul 1999 11:22:24 EDT)
NNTP-Posting-Date: Tue, 20 Jul 1999 11:22:24 EDT
Organization: Sprint Canada Inc.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have some source code from a SoundBlaster library called SMIX, which
is for Watcom DOS4GW.  I am attempting to port the code to DJGPP but
have come to a rather wierd situation.  In one of the functions: 
init_mixing, it calls a  function called low_malloc (which is prototyped
in a header file called lowmalloc.h) which allocates the mixing buffer
depending on the style of the SoundBlaster (8bit or 16bit).  I don't
understand why this memory block has to be in a convensional(?) space
rather than the upper blocks?  Is it part of the SoundBlaster specs??  

If it has to be in the conventional space, then I have found the
function:  __dpmi_allocate_dos_memory (is this what I'm looking for) and
how do I get the pointer to the memory, cause all it returns is the
segment and a pointer to a selector, which I have no clue what to do
with!! 


Oh well I hope you guys understood that message and thx in advance for
any help you may provide!

- Raw text -


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