On 3/29/06, Sebastian Freundt <hroptatyr@sxemacs.org> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jerry James <james@xemacs.org> writes:

> Steve Youngs <steve@sxemacs.org > wrote:
>> Interesting how this thread has come up... we're currently doing
>> surgery on sound in SXEmacs.
>
> Cool.  Are you making it part of the normal event processing system?  I
> was awfully disappointed when I went to look at the sound code and found
> that it is entirely separate from normal events.  I even thought briefly

Hm, why should normal events interact here? We use pthreads to trigger
some external libraries which do all the useful stuff for us. And at the
moment we are about to establish (elisp) sentinels which are called when
`events' (like stopping, seeking, or the like) happen to the stream. But
since such events are of external nature I cannot see how to wrap them
into lisp events. Can you? :)

when you say "external" do you mean "need to be handled asynchronously in lisp"?  if so, then yes you can't put them in lisp events.  but if no, then you should use the same mechanism we currently use in order to convert ^G under TTY's (which arrives as a signal) to a lisp event -- basically, we select() on a pipe that the signal handler writes to.

ben