Specifically in the following source there is a "&ff" no quotes, is this c/c++ or a typo/html conversion error?
// make a music play function// it expects udata to be a pointer to an intvoid myMusicPlayer(void *udata, Uint8 *stream, int len){ int i, pos=*(int*)udata; // fill buffer with...uh...music... for(i=0; i<len; i++) stream=(i+pos)&ff; // set udata for next time pos+=len; *(int*)udata=pos;}...// use myMusicPlayer for playing...uh...musicint music_pos=0;Mix_HookMusic(myMusicPlayer, &music_pos);
Thanks, TC