andrewb
Group: Members
Posts: 316
Joined: July 2005 |
|
Posted: Mar. 14 2008,02:20 |
|
Quote (mikshaw @ Mar. 13 2008,10:12) | It may have been a situation where he was using a slider to change the volume. The default of a FLTK slider is to do its callback every time it's moved, which is many many times when you drag it back and forth rapidly...a good way to check for problems in a slider's callback |
So far as I know this was the situation which caused the seg fault. It didn't do so in his original script. The only difference at this point in the script was how the device being altered was referenced. I had to add a few lines to sort out which mixer the device was controlled through. When a volume change is made the current DMIX executes umix for each mixer in turn, with the relevant device name. John has assumed in this approach that the same device name doesn't appear on multiple mixers. In the case of my Libretto there is a MIC device on both the mixers - one is the built-in mono microphone & the other is the external stereo plug-in. Adjusting MIC in the current DMIX alters both of these simultaneously, making the control somewhat useless as normally the internal microphone should be off (muted) when using an external microphone.
I haven't yet got round to converting my revised version of DMIX to MurgaLUA to use in the current version of DSL.
|