Class: LAME::FFI::MP3Data
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- LAME::FFI::MP3Data
- Defined in:
- lib/lame/ffi/mp3_data.rb
Instance Method Summary collapse
Instance Method Details
#channel_mode ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/lame/ffi/mp3_data.rb', line 20 def channel_mode case self[:stereo] when 1 :mono when 2 :stereo end end |
#header_parsed? ⇒ Boolean
16 17 18 |
# File 'lib/lame/ffi/mp3_data.rb', line 16 def header_parsed? self[:header_parsed] == 1 end |
#sample_rate ⇒ Object
29 30 31 |
# File 'lib/lame/ffi/mp3_data.rb', line 29 def sample_rate self[:samplerate] end |