public static void EnableFFT() { FFTEnabled = true; system.getMasterChannelGroup(out ChannelGroup); system.createDSPByType(FMOD.DSP_TYPE.FFT, out MyDSP); ChannelGroup.addDSP(1, MyDSP); MyDSP.setActive(true); }
void InitDsp() { RuntimeManager.CoreSystem.createDSPByType(FMOD.DSP_TYPE.FFT, out m_FFTDsp); m_FFTDsp.setParameterInt((int)FMOD.DSP_FFT.WINDOWTYPE, (int)FMOD.DSP_FFT_WINDOW.HANNING); m_FFTDsp.setParameterInt((int)FMOD.DSP_FFT.WINDOWSIZE, windowSize); RuntimeManager.CoreSystem.getMasterChannelGroup(out master); var m_Result = master.addDSP(FMOD.CHANNELCONTROL_DSP_INDEX.HEAD, m_FFTDsp); m_Result = master.getDSP(0, out mixerHead); mixerHead.setMeteringEnabled(true, true); }
private void echoA_Click(object sender, System.EventArgs e) { if (echo) { groupA.addDSP(dspecho, ref dspconnectiontemp); } else { dspecho.remove(); } echo = !echo; }
private void reverbA_Click(object sender, System.EventArgs e) { if (reverb) { groupA.addDSP(dspreverb, ref dspconnectiontemp); } else { dspreverb.remove(); } reverb = !reverb; }
void InitDsp() { RuntimeManager.CoreSystem.createDSPByType(FMOD.DSP_TYPE.FFT, out m_FFTDsp); m_FFTDsp.setParameterInt((int)FMOD.DSP_FFT.WINDOWTYPE, (int)FMOD.DSP_FFT_WINDOW.HANNING); m_FFTDsp.setParameterInt((int)FMOD.DSP_FFT.WINDOWSIZE, windowSize); RuntimeManager.CoreSystem.getMasterChannelGroup(out master); var m_Result = master.addDSP(FMOD.CHANNELCONTROL_DSP_INDEX.HEAD, m_FFTDsp); m_Result = master.getDSP(0, out mixerHead); mixerHead.setMeteringEnabled(true, true); FMOD.SPEAKERMODE mode; int raw; RuntimeManager.CoreSystem.getSoftwareFormat(out rate, out mode, out raw); Debug.Log("fmod audio rate: " + rate); }