From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: play-sound-file & esd Date: Sat, 20 May 2006 13:05:25 -0400 Message-ID: References: <44572E8B.6060102@swipnet.se> <44585258.7040506@swipnet.se> <445EF2F9.5060209@swipnet.se> <87r732wzz6.fsf@robotron.kosmorama> <44618798.3030901@swipnet.se> <4461E7DC.8070007@swipnet.se> <44697D66.5060300@swipnet.se> <87ac9ds7uw.fsf@gmail.com> <446ED886.7090600@swipnet.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1148144814 9256 80.91.229.2 (20 May 2006 17:06:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 20 May 2006 17:06:54 +0000 (UTC) Cc: kruhft@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 20 19:06:51 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FhUuV-0003JJ-4f for ged-emacs-devel@m.gmane.org; Sat, 20 May 2006 19:06:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FhUuU-0003TM-Oo for ged-emacs-devel@m.gmane.org; Sat, 20 May 2006 13:06:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FhUtK-00030h-VC for emacs-devel@gnu.org; Sat, 20 May 2006 13:05:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FhUtK-00030K-AD for emacs-devel@gnu.org; Sat, 20 May 2006 13:05:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FhUtK-00030F-6M for emacs-devel@gnu.org; Sat, 20 May 2006 13:05:26 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FhUwu-0004yt-2w for emacs-devel@gnu.org; Sat, 20 May 2006 13:09:08 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FhUtJ-0008Sr-7F; Sat, 20 May 2006 13:05:25 -0400 Original-To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= In-reply-to: <446ED886.7090600@swipnet.se> (message from =?ISO-8859-1?Q?Jan_Dj=E4rv?= on Sat, 20 May 2006 10:51:18 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54879 Archived-At: > I just wrote some code for my jabber client to play sounds > asynchronously I didn't notice the word "asynchronously" when I responded before. Sorry. I guess we need to add async sound playing in the future. But then you have to add a cancel-sound as well. This might be useful to do in the future, after the release. I don't think that having a cancel-sound function is a high cost. David Kastrup wrote: I'd prefer if we could use native interfaces for that. The main application I would see for sound within Emacs would be WYHIWYG-editing of lilypond files and other sound describing programs. Starting one process for each auditory feedback seems like overkill. One would rather want to keep a device/socket/pipe open, and ALSA appears like the most basic access method with a free future: you can pretty much rely on its presence on current GNU/Linux systems. I agree. So in order of urgency, one would probably implement: a) play through a pipe and a command line app started once b) play through native ALSA I think we won't really need (a) if we have (b).