Class: LAME::FFI::GlobalFlags

Inherits:
FFI::ManagedStruct
  • Object
show all
Defined in:
lib/lame/ffi/global_flags.rb

Overview

We need a ManagedStruct to clean up after LAME.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGlobalFlags

Returns a new instance of GlobalFlags.



8
9
10
11
# File 'lib/lame/ffi/global_flags.rb', line 8

def initialize
  lame_struct = LAME.lame_init
  super(lame_struct)
end

Class Method Details

.release(ptr) ⇒ Object



13
14
15
# File 'lib/lame/ffi/global_flags.rb', line 13

def self.release(ptr)
  LAME.lame_close(ptr)
end