Lines Matching refs:fnum
83 static void freq_to_fnum(int freq, int *block, int *fnum);
460 int block, fnum, freq, voice_mode, pan; in opl3_start_note() local
657 freq_to_fnum(freq, &block, &fnum); in opl3_start_note()
663 data = fnum & 0xff; /* in opl3_start_note()
668 data = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3); in opl3_start_note()
677 static void freq_to_fnum (int freq, int *block, int *fnum) in freq_to_fnum() argument
714 *fnum = freq * (1 << (20 - octave)) / 49716; in freq_to_fnum()
934 int block, fnum, freq; in bend_pitch() local
953 freq_to_fnum(freq, &block, &fnum); in bend_pitch()
955 data = fnum & 0xff; /* in bend_pitch()
960 data = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3); in bend_pitch()