use right sample rate for calcs
Flash: Calls through ExternalInterface are synchronous. Return as fast as possible by processing incoming samples later.