Audio dropout if starting UGens not used yet in session(OSX) #17
Description
[Issue migrated from SourceForge | ID: 1804647 | Submitted by 'danstowell']
[http://sourceforge.net/support/tracker.php?aid=1804647]
Various users have reported that occasional audio dropouts can occur when starting a synth (brief, e.g. 10 ms). This has only arisen fairly recently so may be due to a change in SC or to a change in OSX (e.g. its memory management). It seems to be triggered by using UGens that have not been used so far in the SC session, meaning the plugin code is not yet paged-in to memory.
Main discussion thread:
http://www.create.ucsb.edu/pipermail/sc-users/2007-August/035837.html
Dan found that he could cause this to recur if he closed SC, ran memory-hungry apps, then restarted SC. (Didn't happen without running the apps.) (PPC PowerBook, OSX 10.4.10, SC updated from SVN on 2007-09-15.) Seems to confirm it's a paging issue. James H found it happening on his MacBook Pro, 1.83 GHz, 1.5 GB RAM. So it seems to happen on both Intel & PPC. (See email lists for other reports)
During the initial thread of discussion, James McC suggested "a ugen to call upon loading, a function to read the first word of each of its _next function addresses". Florian suggested mlocking scsynth's memory. The issue was discussed at SC Symposium 2007 but not sure if there was a definitive solution.