Class: LAME::FFI::MP3Data

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/lame/ffi/mp3_data.rb

Instance Method Summary collapse

Instance Method Details

#channel_modeObject



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

Returns:

  • (Boolean)


16
17
18
# File 'lib/lame/ffi/mp3_data.rb', line 16

def header_parsed?
  self[:header_parsed] == 1
end

#sample_rateObject



29
30
31
# File 'lib/lame/ffi/mp3_data.rb', line 29

def sample_rate
  self[:samplerate]
end