From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [tvraman@almaden.ibm.com: Re: Native play function slows down emacs on RH 7.3] Date: Sat, 27 Jul 2002 12:52:46 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200207271852.g6RIqkS10717@aztec.santafe.edu> References: <200207251807.g6PI7RC07663@aztec.santafe.edu> <86vg724vs9.fsf@gerd.free-bsd.org> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1027796006 19107 127.0.0.1 (27 Jul 2002 18:53:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 27 Jul 2002 18:53:26 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17YWgu-0004y4-00 for ; Sat, 27 Jul 2002 20:53:24 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17YWxI-0005DB-00 for ; Sat, 27 Jul 2002 21:10:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17YWhF-0004wT-00; Sat, 27 Jul 2002 14:53:45 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17YWgJ-0004e1-00; Sat, 27 Jul 2002 14:52:48 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g6RIqtB17765; Sat, 27 Jul 2002 12:52:56 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g6RIqkS10717; Sat, 27 Jul 2002 12:52:46 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: gerd.moellmann@t-online.de In-Reply-To: <86vg724vs9.fsf@gerd.free-bsd.org> (gerd.moellmann@t-online.de) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6085 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6085 > Is anyone interested in implementing asynchronous playing of sound in > Emacs? Forking sounds like a rather heavyweight method; perhaps the > sound output facilities have asynchronous output features. Gerd, > do you know what is available? I'm afraid I don't know. I'm relatively sure that I didn't see asynchronous playing of sound mentioned in the docs I found when I wrote the code some years ago, but docs were pretty scarce and bad at that time, so I wouldn't take it for granted that there in no such facility. Another possible technique would be to use multi-threading on systems which support that. Does anyone know how widespread such support is now? Another idea is that Emacs could launch a dedicated subprocess for playing sounds, and then send a command to it for each sound. The subprocess would then do the system calls that actually play the sounds. This would be much more efficient than forking for each sound to be played.