midiator 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@
16
16
  require 'string_extensions'
17
17
 
18
18
  module MIDIator
19
- VERSION = "0.1.0"
19
+ VERSION = "0.1.1"
20
20
  end
21
21
 
22
22
  require 'midiator/driver'
@@ -59,9 +59,9 @@ class MIDIator::Driver::CoreMIDI < MIDIator::Driver # :nodoc:
59
59
  @outport = DL::PtrData.new( nil )
60
60
  C.mIDIOutputPortCreate( @client, port_name, @outport.ref )
61
61
 
62
- number_of_destinations = C.mIDIGetNumberOfDestinations()
63
- raise NoMIDIDestinations if number_of_destinations < 1
64
- @destination = C.mIDIGetDestination( @midi_destination )
62
+ number_of_destinations = C.mIDIGetNumberOfDestinations
63
+ raise MIDIator::NoMIDIDestinations if number_of_destinations < 1
64
+ @destination = C.mIDIGetDestination( 0 )
65
65
  end
66
66
 
67
67
  def close
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: midiator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Bleything