Module: Rockbox::PlaybackStatus
- Defined in:
- lib/rockbox/types.rb
Overview
Numeric playback states reported by the firmware.
Constant Summary collapse
- STOPPED =
0- PLAYING =
1- PAUSED =
3
Class Method Summary collapse
Class Method Details
.name(value) ⇒ Object
10 11 12 |
# File 'lib/rockbox/types.rb', line 10 def self.name(value) { 0 => :stopped, 1 => :playing, 3 => :paused }[value] || :unknown end |