From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: Sound in Emacs Date: Mon, 03 Oct 2011 23:04:34 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317675898 30342 80.91.229.12 (3 Oct 2011 21:04:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2011 21:04:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 03 23:04:54 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RAph0-0000nS-9Y for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2011 23:04:54 +0200 Original-Received: from localhost ([::1]:56578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RApgz-0004Fq-9U for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2011 17:04:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RApgu-0004Fk-3e for emacs-devel@gnu.org; Mon, 03 Oct 2011 17:04:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RApgp-0004y5-AP for emacs-devel@gnu.org; Mon, 03 Oct 2011 17:04:48 -0400 Original-Received: from iwfs.imcode.com ([82.115.149.64]:54175 helo=gate.verona.se) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RApgp-0004wy-1R for emacs-devel@gnu.org; Mon, 03 Oct 2011 17:04:43 -0400 Original-Received: from chopper.vpn.verona.se (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id p93L4Yip022251 for ; Mon, 3 Oct 2011 23:04:35 +0200 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 03 Oct 2011 21:46:53 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 82.115.149.64 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144556 Archived-At: Lars Magne Ingebrigtsen writes: > Emacs has rudimentary support for playing sound -- .wav and .au files, > if I read the code correctly. > > Has anybody considered adding support for modern sound formats via a > library like SDL? > > http://icculus.org/SDL_sound/ > > It seems like it has support for all the common formats -- .flac and > .ogg and .mp3 and .etc. > > There's probably no extremely compelling reasons to add built-in support > for a real sound player in Emacs, but it might be kinda neat. If you're > in a dired buffer, you can hit RET to see images, but sound files aren't > as available. Wouldn't it be nice if you hit RET on an .mp3 file, and > Emacs pops up a waveform buffer and starts playing the file? And you > can skip around in the song/podcast... > > Has anybody done any work in that direction? And if not, would Emacs > (after 24.1, or course) be open to adding such functionality if somebody > (ahem) were to find the time to implement it? I'm interested in using Emacs for controlling various media. The Emacs Xwidget branch was for instance originally conceived to implement sliders in Emacs to control sound servers over OSC. There are pretty big Emacs user groups that use Emacs a lot for this, using the CSound and the Supercollider tools for instance. Snd is an audio editor that is influenced by Emacs. And we also of course have EMMS. The thing, though, is that it is pretty seamless to just use an external binary to play the sound, unlike having to start an external binary to watch an image. So my vote would be on improving EMMS. If you still feel a compelling need to implement audio directly in Emacs that's cool also. Then I'd vote for implementing the Emacs buffer model on audio files and use some nice simple portable audio api such as Portaudio. It should be more than enough for Emacs and is, ahem, portable. -- Joakim Verona