home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 18780 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.6 KB  |  41 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!spool.mu.edu!umn.edu!csus.edu!netcom.com!netcomsv!proto!joe
  3. From: joe@proto.com (Joe Huffman)
  4. Subject: Re: 32bit Zortech Pointers
  5. Organization: FlashTek, Inc.
  6. Date: Wed, 06 Jan 1993 21:51:13 GMT
  7. Message-ID: <1993Jan06.215113.6205@proto.com>
  8. References: <C03usF.8CA@ais.org> <1992Dec31.203531.1158@proto.com> <C06441.8oI@ais.org>
  9. Lines: 30
  10.  
  11. empath@ais.org (Tim Triemstra) writes:
  12.  
  13. >The code goes something like this:
  14.  
  15. >unsigned char *buffer;
  16. >//malloc the buffer I believe
  17. >InitVoice(buffer);
  18.  
  19. >My pointer logic is real bad at 4am but that is the gist of it.  In the
  20. >32bit mode, I get static - but the proper amount of static which mean that
  21. >the interrupt is being called and killed correctly, but not given the proper
  22. >data - hence the concept of improper pointer holding in 32bit modes with
  23. >interrupts.  
  24.  
  25. What I suspect the problem is that your InitVoice() routine does is execute
  26. something in real mode.  The protected mode pointer that you pass to it is
  27. not valid while in real mode.  What you will need to do is allocate some
  28. real mode memory (int 21H function 48H) then use the protected mode pointer
  29. to put the data into the buffer from protected mode, then use the real mode
  30. pointer to pass to the real mode code to take the data out of the buffer.
  31.  
  32. >Thanks again guys.  Joe - I sent this code a while back UUENCODED to
  33. >you att proto com, so if this interests you and you would "like" to get
  34. >it working go fer it.  It's just gonna be GNU distrubuted when done anyhow.
  35.  
  36. I have the code, but I don't have a sound blaster to try it out on... thanks.
  37.  
  38. -- 
  39. netcom!proto!joe
  40. joe@proto.com
  41.