fixed rendering with samplerates other than 44100hz