trying fix samplarate change crash