aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emms-player-simple.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/emms-player-simple.el b/emms-player-simple.el
index 244f701..de3edad 100644
--- a/emms-player-simple.el
+++ b/emms-player-simple.el
@@ -194,8 +194,15 @@ PLAYER is the name of the current player."
'resume
nil)
+(emms-player-set emms-player-alsaplayer
+ 'seek
+ 'emms-player-alsaplayer-seek)
+
(defun emms-player-alsaplayer-pause ()
(call-process "alsaplayer" nil nil nil "--pause"))
+(defun emms-player-alsaplayer-seek (sec)
+ (call-process "alsaplayer" nil nil nil "--relative" (format "%d" sec)))
+
(provide 'emms-player-simple)
;;; emms-player-simple.el ends here