pomidor icon indicating copy to clipboard operation
pomidor copied to clipboard

Use a dedicated emacs daemon for playing sounds

Open juergenhoetzel opened this issue 6 years ago • 2 comments

I experienced stuttering sound and sometimes the UI was lagging on a slow device. Using a dedicated daemon fixes this issue for me.

juergenhoetzel avatar Nov 29 '19 21:11 juergenhoetzel

Thanks for the PR! I'm getting

Error running timer ‘play-sound-file’: (error "No usable sound device driver found")

in the pomidor server.

Also it seems that running server will stay in the background, even if you close *pomidor* buffer or Emacs itself.

I think we can add this as a new function so those who need it can customize pomidor-play-sound-file to use it.

TatriX avatar Dec 01 '19 12:12 TatriX

Error running timer ‘play-sound-file’: (error "No usable sound device driver found")

What system do you have? On GNU/Linux Emacs uses alsa and most distributions use a pulseaudio config for alsa:

cat /etc/asound.conf 
# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

# vim:set ft=alsaconf:

and thus has the ability to synchronize multiple playback streams.

in the pomidor server.

Also it seems that running server will stay in the background, even if you close *pomidor* buffer or Emacs itself.

Good catch!

I think we can add this as a new function so those who need it can customize pomidor-play-sound-file to use it. :+1:

juergenhoetzel avatar Dec 01 '19 14:12 juergenhoetzel