[Top][All Lists]

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

Emacs audio problem

From: Dan Espen
Subject: Emacs audio problem
Date: Thu, 31 Jan 2013 13:32:05 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

I'm using Emacs 24.1.1 on Fedora Linux.

I while back, I started missing audible indications of errors so I
added this:

(setq ring-bell-function (lambda ()
 (play-sound-file "/home/me/audio/")))

This works, but has an undesirable side effect.
It looks like keystrokes are ignored until after the sound plays.

For example, if I arrow up to beyond the top of a file 
I hear some taps.  If I try to do something else with the keyboard
before the sounds stop, the key strokes are ignored.

This doesn't happen running emacs -q.

I think the flushing of keystrokes may be normal,
just not noticeable without something in ring-bell-function.

I tried to speed up ring-bell-function by:

(setq my-sound (get-string-from-file "/home/me/audio/"))
and then using:
(play-sound `(sound :data ,my-sound :volume 40))

This seems like it helps.

I added :volume 40 because, for some reason, the sound played too loud.
Coding the volume had the undesirable side effect of turning down (or up)
the volume on all sounds on the system.

That's no good either.

Anyone have a suggestion?

Dan Espen

reply via email to

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