|
From: Vladimir S. <ha...@so...> - 2004-07-06 04:03:40
|
Hi Everybody, Weekend was way too short. I've checked in some infrastructure changes. This is basically to address the issues we've discussed previously about creating devices with parameters. I've applied a bit more patterns in a few places . . . created new factory that is responsible for creating parameters. Device factory now creates parameters first and then creates a device. Once device is up and running parameters are attached to it. Device parameters are now registered (just like drivers) so that device driver doesn't need to deal with parameters at all(like supplying available parameters, parsing them on device creation, etc). It can just read them when it wants to, always assuming that they are there. So basically stuff like: CREATE MIDI_INPUT_DEVICE Alsa ports=10 works OK now. (that includes the active/inactive state too). Generally speaking, a design (especially when patterns are involved) is not created in a single step but rather gets massaged in over some time. This design is not perfect yet, but i hope it is a step in the right direction. If something doesn't make sense please drop me a line maybe i missed something or didn't think of some features that we'll need later. If you have questions on how something works don't hesitate to write also. Any feedback will be appreciated. Constructive or not :) I still haven't had any time to fix the MacOS MIDI stuff. or to do testing, or updating the spec. Hopefully next weekend. Next weekend is the last weekend for me in a while . . . after that i'll be travelling for abount a month with little or no access to the net :( Regards, Vladimir. |