Permalink
Browse files

oops, broke the core_midi driver. fix it and release 0.1.1

  • Loading branch information...
1 parent a570abb commit 866ff0c9597206036311ed6ecbcdde7a4a18ae8b @bleything committed Oct 20, 2008
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/midiator.rb
  2. +3 −3 lib/midiator/drivers/core_midi.rb
View
@@ -16,7 +16,7 @@
require 'string_extensions'
module MIDIator
- VERSION = "0.1.0"
+ VERSION = "0.1.1"
end
require 'midiator/driver'
@@ -59,9 +59,9 @@ def open
@outport = DL::PtrData.new( nil )
C.mIDIOutputPortCreate( @client, port_name, @outport.ref )
- number_of_destinations = C.mIDIGetNumberOfDestinations()
- raise NoMIDIDestinations if number_of_destinations < 1
- @destination = C.mIDIGetDestination( @midi_destination )
+ number_of_destinations = C.mIDIGetNumberOfDestinations
+ raise MIDIator::NoMIDIDestinations if number_of_destinations < 1
+ @destination = C.mIDIGetDestination( 0 )
end
def close

0 comments on commit 866ff0c

Please sign in to comment.