home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sgi / 13467 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.1 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!rutgers!cmcl2!adm!news
  2. From: ross-c@dcs.leeds.ac.uk (The Brown Bottle)
  3. Newsgroups: comp.sys.sgi
  4. Subject: X-events from audio buffer
  5. Message-ID: <32503@adm.brl.mil>
  6. Date: 10 Sep 92 12:47:21 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 22
  9.  
  10.  
  11. Hi.
  12.  
  13. I want to generate an X-event that occurs whenever the audio buffer looks
  14. like it's about to empty. E.g. I would like to write 880 samples (1/100th
  15. of a second) and when only 220 are left, the X handler calls a routine of
  16. mine which writes another 660 (not quite building up to 880 because some
  17. time has passed....), control is then returned to XtAppMainLoop (or whatever
  18. it is called) until the buffer empties out to 220 samples again.
  19.  
  20. Could someone explain how to do this, or point me in the direction of the
  21. correct man pages (I had a quick look but couldn't find anything), or ....
  22.  
  23. Also, if anyone knows any good ways of handling audio from inside an X-windows
  24. application .... all hints much appreciated (at the moment I have one X-process
  25. and one audio process connected by pipes).
  26.  
  27. I'm using motif, if this has any relevence.
  28.  
  29. Thanks in anticipation,
  30.  
  31. Ross-c
  32.