From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#4208: 23.1; play-sound-file does not work Date: Fri, 21 Aug 2009 08:48:26 +0200 Message-ID: <4A8E433A.9060304@swipnet.se> References: Reply-To: Jan =?UTF-8?Q?Dj=C3=A4rv?= , 4208@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250838433 22683 80.91.229.12 (21 Aug 2009 07:07:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Aug 2009 07:07:13 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Tom Tromey , 4208@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 21 09:07:06 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MeODJ-00076G-Of for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Aug 2009 09:07:06 +0200 Original-Received: from localhost ([127.0.0.1]:35632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeODJ-0006Ht-7M for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Aug 2009 03:07:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeODD-0006F2-Mn for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 03:06:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeOD9-0006AB-26 for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 03:06:59 -0400 Original-Received: from [199.232.76.173] (port=45909 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeOD8-0006A8-SB for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 03:06:54 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:32711) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MeOD8-0003vq-67 for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 03:06:54 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MeOD7-0003X6-9c for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 03:06:53 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7L76pvg002976; Fri, 21 Aug 2009 00:06:51 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7L6tEPm000304; Thu, 20 Aug 2009 23:55:14 -0700 Resent-Date: Thu, 20 Aug 2009 23:55:14 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 21 Aug 2009 06:55:14 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4208 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4208-submit@emacsbugs.donarmstrong.com id=B4208.125083731531616 (code B ref 4208); Fri, 21 Aug 2009 06:55:14 +0000 Original-Received: (at 4208) by emacsbugs.donarmstrong.com; 21 Aug 2009 06:48:35 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from proxy1.bredband.net (proxy1.bredband.net [195.54.101.71]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7L6mXkR031608 for <4208@emacsbugs.donarmstrong.com>; Thu, 20 Aug 2009 23:48:35 -0700 Original-Received: from iph2.telenor.se (195.54.127.133) by proxy1.bredband.net (7.3.140.3) id 49F5A15202DEF40E for 4208@emacsbugs.donarmstrong.com; Fri, 21 Aug 2009 08:48:27 +0200 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtFnABHgjUpV4S1uPGdsb2JhbACBU4g+kGwBAQEBN7s7hBgF X-IronPort-AV: E=Sophos;i="4.44,249,1249250400"; d="scan'208";a="36889447" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by iph2.telenor.se with ESMTP; 21 Aug 2009 08:48:26 +0200 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 8F3F07FA07B; Fri, 21 Aug 2009 08:48:26 +0200 (CEST) User-Agent: Thunderbird 2.0.0.22 (X11/20090608) In-Reply-To: X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Fri, 21 Aug 2009 03:06:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30409 Archived-At: Tom Tromey skrev: > > I'm using Emacs 23 on Fedora 11. > > play-sound-file reliably does not work for me. When I try it I get this > error: > > play-sound: No usable sound device driver found > > I don't know why this fails. This error shows up when Emacs tries to open the old OSS based sound device. This isn't surprising if pulseaudio is running. But you should be able to use ALSA instead. But this message indicates that HAVE_ALSA isn't defined. Have you installed ALSA development libraries? The package is called libasound2-dev or something similar. Redo the configure and make sure it says (early in the configure run): checking for alsa >= 1.0.0... yes checking ALSA_CFLAGS... -I/usr/include/alsa checking ALSA_LIBS... -lasound Also try % aplay where is some file. If it works you have ALSA and Emacs should use that. > I looked at the code a tiny bit. I think one possible fix would be to > write a PulseAudio sound back end for Emacs. PulseAudio seems to be the > current way of producing sounds on Fedora. > Well, one can set up pulseaudio so ALSA doesn't work. On the other hand one can set up ALSA to use pulseaudio. I don't know how Fedora 11 does it. Jan D.