lib/mpg321.rb in mpg321-0.3.1 vs lib/mpg321.rb in mpg321-0.4.0
- old
+ new
@@ -17,13 +17,19 @@
@paused = !@paused
@music_input.puts "P"
end
def stop
+ @paused = !@paused
@music_input.puts "S"
end
+ def paused?
+ @paused
+ end
+
def play song_list
+ @paused = !@paused
@song_list = song_list
if song_list.class == Array
@list = true
play_song @song_list.shift
else