Class: Sound::DeviceLibrary::ALSA::Handle
- Inherits:
-
Object
- Object
- Sound::DeviceLibrary::ALSA::Handle
- Defined in:
- lib/sound/device_library/alsa.rb
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize ⇒ Handle
constructor
A new instance of Handle.
- #pointer ⇒ Object
Constructor Details
#initialize ⇒ Handle
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
#id ⇒ Object
15 16 17 |
# File 'lib/sound/device_library/alsa.rb', line 15 def id @handle.read_pointer end |
#pointer ⇒ Object
12 13 14 |
# File 'lib/sound/device_library/alsa.rb', line 12 def pointer @handle end |