aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emms-player-simple.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/emms-player-simple.el b/emms-player-simple.el
index 985d3ed..17611eb 100644
--- a/emms-player-simple.el
+++ b/emms-player-simple.el
@@ -182,5 +182,17 @@ PLAYER is the name of the current player."
(emms-player-simple-regexp ".ogg" ".mp3" ".wav" ".flac" ".pls" ".m3u" "http://")
"alsaplayer" "--quiet" "--nosave" "\"--interface text\"")
+(emms-player-set emms-player-alsaplayer
+ 'pause
+ 'emms-player-alsaplayer-pause)
+
+;;; Pause is also resume for alsaplayer
+(emms-player-set emms-player-alsaplayer
+ 'resume
+ nil)
+
+(defun emms-player-alsaplayer-pause ()
+ (call-process "alsaplayer" nil nil nil "--pause"))
+
(provide 'emms-player-simple)
;;; emms-player-simple.el ends here