diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-24 13:59:24 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-24 13:59:24 -0700 |
commit | a5ecf626566cc180c5a67ada6094614ddaed5b08 (patch) | |
tree | 951d61c4e0a587ed647428135c325b10994b073e /libmpd/playbackoptions.rb | |
parent | 6a26bf725101f938a0d1526176f57bdff0fc9293 (diff) | |
download | ruby-libmpd-a5ecf626566cc180c5a67ada6094614ddaed5b08.tar.gz ruby-libmpd-a5ecf626566cc180c5a67ada6094614ddaed5b08.tar.xz |
A couple of small changes.
Diffstat (limited to 'libmpd/playbackoptions.rb')
-rw-r--r-- | libmpd/playbackoptions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpd/playbackoptions.rb b/libmpd/playbackoptions.rb index 9b82157..4a5386f 100644 --- a/libmpd/playbackoptions.rb +++ b/libmpd/playbackoptions.rb @@ -29,7 +29,7 @@ module MPDPlaybackOptions # Sets crossfading between songs. def crossfade seconds - return send_request 'crossfade ' + seconds.to_s + return send_request 'crossfade %s' % seconds end # Returns the current crossfade setting as an integer. @@ -69,7 +69,7 @@ module MPDPlaybackOptions # Sets volume from a range of 0 to 100. def volume volume - return send_request 'setvol ' + volume.to_s + return send_request 'setvol %s' % volume end # Returns the current volume as an integer. |