From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: Emacs audio problem Date: Fri, 01 Feb 2013 12:08:21 -0500 Organization: A noiseless patient Spider Message-ID: References: <1b535d32-a49d-49a2-a82d-c3851fed1b35@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1359738617 13106 80.91.229.3 (1 Feb 2013 17:10:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2013 17:10:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 01 18:10:36 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U1K8G-0003n8-Mf for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Feb 2013 18:10:32 +0100 Original-Received: from localhost ([::1]:42234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1K7y-00081p-EG for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Feb 2013 12:10:14 -0500 Original-Path: usenet.stanford.edu!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Injection-Info: mx05.eternal-september.org; posting-host="7e6ac87e7b6e436b7ebfebc05199ad83"; logging-data="25056"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ufhwgpGjg9RYRxiHF7MB45kKR5/GwT3M=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) Cancel-Lock: sha1:+3+sxkveE+NRfSqU4O04IDBvumo= sha1:z7Vp5YQLdf9vjGl1NLWvbFhfQps= Original-Xref: usenet.stanford.edu gnu.emacs.help:196617 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88909 Archived-At: Jason Rumney writes: > On Friday, 1 February 2013 02:32:05 UTC+8, Dan Espen wrote: >> >> (setq ring-bell-function (lambda () >> >> (play-sound-file "/home/me/audio/tap2.au"))) >> >> This works, but has an undesirable side effect. >> >> It looks like keystrokes are ignored until after the sound plays. >> >> Anyone have a suggestion? > > Use start-process to have an external program play the sound. That's an idea. I tried to follow Emacs code to see if it does something different for :data vs. :file for the volume issue, but so far the logic remains hidden from me. I don't give up easy, so I'll try again. I'll report back about start-process when I get a chance to try it. -- Dan Espen