implemented sample size calculations in DynamicSoundEffectInstance