Advertisement
Guest User

Untitled

a guest
May 19th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. //-----------------------------------------------------------------------------
  2. void audioSetVoiceRate(int channel, int hz)
  3. //-----------------------------------------------------------------------------
  4. {
  5. Voice *v = channelMap[channel];
  6. if (v)
  7. {
  8. v->rate = (hz << PRECISION) / (mixingFrequency * oversampling);
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement