Searched refs:osc (Results 1 – 2 of 2) sorted by relevance
90 static Oscillator osc; variable122 osc.rate = STRM_SAMPLE_RATE << FX32_SHIFT; in NitroMain()168 osc.step = (fx16)FX_Div(GetFreq(tp.x * 4 + 60 * 64) << FX32_SHIFT, osc.rate); in NitroMain()169 osc.gain = (u16)(tp.y * OSC_MAX_VOLUME / 192); in NitroMain()203 osc.index = 0; in Play()303 ((s16 *)buf)[i] = (s16)FX_Whole(FX_Mul32x64c(osc.gain << FX32_SHIFT, in MakeStreamData()304 FX_SinFx64c(FX_Mul32x64c(osc.index, in MakeStreamData()306 osc.index += osc.step; in MakeStreamData()307 osc.index &= FX32_DEC_MASK; in MakeStreamData()
159 static Oscillator osc; variable205 osc.rate = STRM_SAMPLE_RATE << FX32_SHIFT; in NitroMain()368 osc.step = (fx16)FX_Div(GetFreq(tp.x * 12 + 60 * 64) << FX32_SHIFT, osc.rate); in NitroMain()369 osc.gain = (u16)(tp.y * OSC_MAX_VOLUME / 192); in NitroMain()1057 osc.index = 0; in Play()1160 ((s16 *)buf)[i] = (s16)FX_Whole(FX_Mul32x64c(osc.gain << FX32_SHIFT, in MakeStreamData()1161 FX_SinFx64c(FX_Mul32x64c(osc.index, in MakeStreamData()1163 osc.index += osc.step; in MakeStreamData()1164 osc.index &= FX32_DEC_MASK; in MakeStreamData()