[Pharo-dev] SimpleMIDIPort midiIsSupported returns the first time false and after all the time true :)

Stéphane Ducasse stephane.ducasse at inria.fr
Sat Aug 3 14:28:34 EDT 2013


Strange 
May be the logic in the primitive is strange.


midiIsSupported
	"Answer true if this platform supports MIDI."

	^ self primPortCount > 0


primPortCount
	"Answer the number of MIDI ports supported by this platform, or zero if this primitive is not implemented."

	<primitive: 'primitiveMIDIGetPortCount' module: 'MIDIPlugin'>
	^ 0


Stef



More information about the Pharo-dev mailing list