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