Class: Sound::DeviceLibrary::MMLib::Handle
- Inherits:
-
Object
- Object
- Sound::DeviceLibrary::MMLib::Handle
- Defined in:
- lib/sound/device_library/mmlib.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.
10 11 12 |
# File 'lib/sound/device_library/mmlib.rb', line 10 def initialize @handle = FFI::MemoryPointer.new(:pointer) end |
Instance Method Details
#id ⇒ Object
16 17 18 |
# File 'lib/sound/device_library/mmlib.rb', line 16 def id @handle.read_int end |
#pointer ⇒ Object
13 14 15 |
# File 'lib/sound/device_library/mmlib.rb', line 13 def pointer @handle end |