home *** CD-ROM | disk | FTP | other *** search
/ Sound, Music & MIDI Collection 2 / SMMVOL2.bin / GRAV_SDK / SDK11I13.ZIP / SDK11I13.TXT / text0000.txt < prev   
Encoding:
Text File  |  1995-03-04  |  2.9 KB  |  73 lines

  1. GUS Programmer's Digest     Sun, 22 May 94 14:35 PST     Volume 11: Issue  13 
  2.  
  3. Today's Topics:
  4.                        confusing behavior, SDK
  5.  
  6. Standard Info:
  7.     - Meta-info about the GUS can be found at the end of the Digest.
  8.     - Before you ask a question, please READ THE FAQ.
  9.  
  10. ----------------------------------------------------------------------
  11.  
  12. Date: Sun, 22 May 94 02:20:35 EDT
  13. From: gchung@eden.rutgers.edu (Greg Chung)
  14. Subject: confusing behavior, SDK
  15.  
  16. I'm using the good 'ole SDK2.1, yes I'm back to hacking my GUS.
  17.  
  18. I've found a curious oddity:
  19.  
  20. I set up a mod playing routine by using UltraTimer1Handler (for mod
  21. timing), UltraTimer2Handler (for nifty volume bars, etc), and
  22. UltraWaveHandler (the sample-finished handler, for ramps).
  23.  
  24. I then start the playback (UltraStartTimer(1)) and sit in a while
  25. loop:
  26. while (MOD.Playing) { ... }
  27.  
  28. In the { ... } I have found that if I put in a kbhit(), everything is
  29. fine until I quit the program.  At that point a dos "mem" will cause a
  30. crash.  However, if I use "(void) getch()" instead, all is well.  
  31.  
  32. Obviously something's wrong here.  I've tried turning off almost
  33. everything, leaving just the timer1 going and calling an empty
  34. function, yet the kbhit is still what causes the crash.
  35.  
  36. I'm not going to say that kbhit is the culprit, but whatever it's
  37. doing is making some problem come to the surface... but I have no idea
  38. what.
  39.  
  40. Other info: I'm setting up everything as should be with the correct
  41. open/reset functions.  The kbhit function works fine before I define
  42. the interrupt handlers (in the file selection window).
  43.  
  44. If anyone out there has some insight, please reply.  Many thanks.
  45.  
  46. ------------------------------
  47.  
  48. End of GUS Programmer's Digest V11 #13
  49. **************************************
  50.  
  51. To post to tomorrow's digest:                    <gus-sdk@mail.orst.edu>
  52. To (un)subscribe or get help:            <gus-sdk-request@mail.orst.edu>
  53. To contact a human (last resort):          <gus-sdk-owner@mail.orst.edu>
  54.  
  55. FTP Sites              Archive                       Directories
  56. ---------              -------                       -----------
  57. Main N.American Site:  archive.orst.edu              pub/packages/gravis
  58.                        wuarchive.wustl.edu           systems/ibmpc/ultrasound
  59. Main Asian Site:       nctuccca.edu.tw               PC/ultrasound
  60. European Callers ONLY: theoris.rz.uni-konstanz.de    pub/sound/gus
  61. Submissions:           archive.epas.utoronto.ca      pub/pc/ultrasound/submit
  62. Newly Validated Files: archive.epas.utoronto.ca      pub/pc/ultrasound
  63. Mirrors:               garbo.uwasa.fi                mirror/ultrasound
  64.  
  65. MailServer For Archive Access: Email to <mail-server@nike.rz.uni-konstanz.de>
  66.  
  67. Hints:
  68.       - Get the FAQ from the FTP sites or the request server.
  69.       - Mail to <gus-sdk-request@mail.orst.edu> for info about other GUS
  70.     related mailing lists (general use, musician's, etc.).
  71.  
  72.  
  73.