In the course of coding this, I fixed a subtle bug that I thought I'd
explain.  At first I thought my code had caused it, so I tracked it down,
but I found that it wasn't, though they interacted.

Almost seven screenfuls of notes made short: When user changes device
connections, we were not resetting the device's or its instruments'
controllers, and that could cause there to be no sound (for me, by sending
zeroes for expression controller).  This could happen if you loaded a
document that guesses the wrong device-name for your setup and you
manually changed to the right output device.  (For me, bogus-surf-jam.rg)

I made setConnection call a new virtual function in Device,
refreshForConnection, that tries to set Device up right again.  Not
perfectly, but ISTM better than just using the old Device's controller
info.  It assumes that zero values are leftover from the old device, and
only removes excess controllers, doesn't add new ones as needed.  Which is
a bit of a cheat, but I was quite tired.

        Tom Breton (Tehom)



------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to