Spurts
• Chris Liscio
• Chris Liscio
Last night was a great example of what I like to call 'spurts'. I have a limited amount of time to spend on my software during weeknights, and it's especially hard to get a solid productive session out of 3 or 4 hours of available time.</p><p>Spurts occur when you take one of those small chunks of time, but make a huge amount of progress towards a goal. In my case, my goal is to get my measurement code working automatically rather than requiring the user's intervention to trigger the measurement tasks (start, stop, measure, display). This is easier said than done when you're working with CoreAudio IOProc functions that are executing outside of your main thread.</p><p>Luckily, Cocoa gives me the performSelectorOnMainThread method which gives me the ability to run my measurement in the main thread once the impulse response measurement is complete. Obviously, I will need to employ some locks to keep data safe, but this is certainly a helpful construct to have.</p><p>I probably added a few hundred lines of code last night in that short period of time I had. The code mostly consisted of get/set routines, though. :P</p><p>Oh well. At least my changes didn't break anything. ;)</p><p></p>