Class: Sound::DeviceLibrary::ALSA::Handle

Inherits:
Object
  • Object
show all
Defined in:
lib/sound/device_library/alsa.rb

Instance Method Summary collapse

Constructor Details

#initializeHandle

Returns a new instance of Handle.



9
10
11
# File 'lib/sound/device_library/alsa.rb', line 9

def initialize
  @handle = FFI::MemoryPointer.new(:pointer)
end

Instance Method Details

#idObject



15
16
17
# File 'lib/sound/device_library/alsa.rb', line 15

def id
  @handle.read_pointer
end

#pointerObject



12
13
14
# File 'lib/sound/device_library/alsa.rb', line 12

def pointer
  @handle
end