octareenroon91 / analog-box

Automatically exported from code.google.com/p/analog-box
0 stars 0 forks source link

MidiIn Should Always be Creatable -- even if no hardware is available #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Problem:
The MidiIn and MidiOut objects can only be created by the user 
if the associated Midi hardware exists on the users computer. 
Not all computers have Midi ports. With the addition of Midi 
Streams in ABox 2.31, using Midi objects does not necessarily 
require associated hardware. Some features of the new streams 
are desirable -- such as polyphonic trackers and simplified 
command streams.

Recommend:
In the ABox source code, the MidiHardware base class is asked 
if it can create a Midi object. Currently, it looks at a 
CAN_CREATE flag defined in the base class definition and 
answers 'no' if associated hardware is not found. Said flag 
should be changed, and the source code perused in order to 
verify that object will never try to create hardware that 
doesn't exist.

Original issue reported on code.google.com by andyt7...@gmail.com on 8 Jul 2011 at 8:59