2012-02-11, 21:06
DanielaE Wrote:Upgrading the output renderers to an event driven approach is possibly the correct solution - as AE does.
Hi Daniela - code looks a little more streamlined that way too - using the switch/case to set more of the specifics per codec. Not sure if the hi-def formats should always be 8-channel, but it's the most reasonable fallback position.
I did the event-driven loop in the AE code and it is a better route than the timed buffer method. Added a timing routine as well to flag if the AddPackets function is called too late or just barely in time so the buffer size could be fine-tuned to meet the user's hardware capabilities. Hard-coded some minimum buffer sizes but then let the user adjust via advancedsettings.xml. All that's in the AE code though.