/// <summary> /// Edycja efektu Reverb w słowniku. /// </summary> /// <param name="chor">Obiekt BASS_DX8_REVERB.</param> /// <param name="d">Obiekt słownika.</param> private void EditReverb(BASS_DX8_REVERB reverb, Dictionary <string, float> d) { if (!d.ContainsKey("ratio") || !d.ContainsKey("gain") || !d.ContainsKey("mix") || !d.ContainsKey("time")) { throw new ArgumentException("Brak wymaganych parametrów w dictionary"); } reverb.fHighFreqRTRatio = d["ratio"]; reverb.fInGain = d["gain"]; reverb.fReverbMix = d["mix"]; reverb.fReverbTime = d["time"]; }
public Module() { Scenes = new BindingList <Scene>(); IsDirty = true; Scenes.ListChanged += new ListChangedEventHandler(Scenes_ListChanged); ModuleMixerChannel = BassMix.BASS_Mixer_StreamCreate(44100, 2, BASSFlag.BASS_MIXER_NONSTOP | BASSFlag.BASS_SAMPLE_FLOAT); BassMix.BASS_Mixer_ChannelFlags(ModuleMixerChannel, BASSFlag.BASS_MIXER_NORAMPIN, BASSFlag.BASS_MIXER_NORAMPIN); Bass.BASS_ChannelPlay(ModuleMixerChannel, false); reverbChannel = Bass.BASS_ChannelSetFX(ModuleMixerChannel, BASSFXType.BASS_FX_DX8_REVERB, 1000); reverb = new BASS_DX8_REVERB(); reverb.fReverbMix = -96; reverb.fReverbTime = 0; Bass.BASS_FXSetParameters(reverbChannel, reverb); }
public Module() { Scenes = new BindingList<Scene>(); IsDirty = true; Scenes.ListChanged += new ListChangedEventHandler(Scenes_ListChanged); ModuleMixerChannel = BassMix.BASS_Mixer_StreamCreate(44100, 2, BASSFlag.BASS_MIXER_NONSTOP | BASSFlag.BASS_SAMPLE_FLOAT); BassMix.BASS_Mixer_ChannelFlags(ModuleMixerChannel, BASSFlag.BASS_MIXER_NORAMPIN, BASSFlag.BASS_MIXER_NORAMPIN); Bass.BASS_ChannelPlay(ModuleMixerChannel, false); reverbChannel = Bass.BASS_ChannelSetFX(ModuleMixerChannel, BASSFXType.BASS_FX_DX8_REVERB, 1000); reverb = new BASS_DX8_REVERB(); reverb.fReverbMix = -96; reverb.fReverbTime = 0; Bass.BASS_FXSetParameters(reverbChannel, reverb); }
// Token: 0x060000C7 RID: 199 RVA: 0x0001ADB8 File Offset: 0x00018FB8 public void method_53() { BASS_DX8_REVERB par = new BASS_DX8_REVERB(-40f, -40f, 0.1f, 0.001f); Bass.BASS_FXSetParameters(this.stemChannels[0], par); }
// Token: 0x060000A5 RID: 165 RVA: 0x00019EF8 File Offset: 0x000180F8 public void method_21() { BASS_DX8_REVERB par = new BASS_DX8_REVERB(608f, 929f, 250f, 1615f); Bass.BASS_FXSetParameters(this.stemChannels[1], par); }