public int AddSlideCallback(SlideCallback Callback) { Audio.BASS_Syncproc proc = delegate(int Handle, int Channel, int Data, IntPtr User) { Callback(Data); }; SYNCPROC_CACHE.Add(proc); return(Audio.BASS_ChannelSetSync(this.Stream, Audio.BASS_Sync.BASS_SYNC_SLIDE | Audio.BASS_Sync.BASS_SYNC_MIXTIME, 0, proc, IntPtr.Zero)); }
public void FadeIn(long Time, SlideCallback Callback) { SlideVolume(OriginalVolume, Time); int Handle = 0; Handle = AddSlideCallback(delegate(int SlideType) { Callback(SlideType); RemoveCallback(Handle); }); }