Class: LAME::FFI::GlobalFlags
- Inherits:
-
FFI::ManagedStruct
- Object
- FFI::ManagedStruct
- LAME::FFI::GlobalFlags
- 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
-
#initialize ⇒ GlobalFlags
constructor
A new instance of GlobalFlags.
Constructor Details
#initialize ⇒ GlobalFlags
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 |