From 032b3dc04de6e0215f90d1805af8fb9fc4b9d028 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Sun, 11 Apr 2010 18:31:00 +0200 Subject: [PATCH] mpd-example changed. uses librmpd --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5eaf769..777adc8 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ Description =========== -lircr (pronounced 'lurker') is a LIRC client library for Ruby. It's simple, -it's easy, it's fun. If you got LIRC, get lircr. I am not responsible if you +lircr (pronounced 'lurker') is a LIRC client library for Ruby. It is simple, +it is easy, it is fun. If you got LIRC, get lircr. I am not responsible if you grow more hair on your index finger or thumb. Usage @@ -19,14 +19,16 @@ Usage Control your MPD: require 'lirc' + require 'librmpd' lirc = LIRC::Client.new + mpd = MPD.new 'localhost', 6600 lirc.each do |event| case event.name when "play" - system "mpc", "play" + mpc.play when "pause" - system "mpc", "pause" + mpd.pause = !mpd.pause when "stop" - system "mpc", "stop" + mpd.stop end end