Guest User

Untitled

a guest
Jun 24th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function AutoResampleTo48kHz(clip c)
  2. {
  3.     src_rate = c.AudioRate()
  4.     return src_rate == 48000 ? c : \
  5.            src_rate % 8000 == 0 || src_rate == 11025 || src_rate == 22050 || src_rate == 44100 ? c.SSRC(48000) : \
  6.            c.ResampleAudio(48000)
  7. }
Add Comment
Please, Sign In to add comment