Ember

FMOD Stuff

Aug 31st, 2012
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * Example: song_freq is 44100 for normal speed and 5000 for slow-mo
  3. */
  4.  
  5. //Set frequency of song:
  6. FMODInstanceSetFrequency(ins_song,ceil(song_freq));
  7.  
  8. //Set pitch of all sounds in effects-group:
  9. FMODGroupSetPitch(2,0.3 + ((song_freq/44100)*0.7));
Advertisement
Add Comment
Please, Sign In to add comment