Skip to content

Instantly share code, notes, and snippets.

@justinruggles
Created April 30, 2014 19:49
Show Gist options
  • Save justinruggles/546363e1da41e5f1511b to your computer and use it in GitHub Desktop.
Save justinruggles/546363e1da41e5f1511b to your computer and use it in GitHub Desktop.
if (avr->resample_needed) {
nb_samples = nb_samples * avr->out_sample_rate + avr->in_sample_rate / 2;
nb_samples /= avr->in_sample_rate;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment