Philip - I was experiencing that for the audio stuff, but only when I was giving it the wrong input. It's possible the that input values aren't sensible and that's what causes the NaN?