emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sound in Emacs


From: Óscar Fuentes
Subject: Re: Sound in Emacs
Date: Wed, 05 Oct 2011 01:44:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

"Jan D." <address@hidden> writes:

> address@hidden skrev 2011-10-03 23:04:
>
>> 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 just are out to get a more fancy beep, starting a new external
> binary for every beep may not be so seamless.

As Emacs' `(beep)' does not work on Kubuntu 10.10, my .emacs contains

  (setq ring-bell-function
        (lambda ()
          (call-process "beep" nil 0 nil "-f" "400" "-l" "100")))

Although the `beep' executable is as lightweight as it can possibly be,
the results are far from perfect. For instance

(beep)
(sit-for 0.1)
(beep)

usually makes two audible beeps, but often only one beep is
perceived. On the machines where Emacs' (beep) works, there is no such
problem.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]