Beispiel #1
0
 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));
 }
Beispiel #2
0
        public void FadeIn(long Time, SlideCallback Callback)
        {
            SlideVolume(OriginalVolume, Time);
            int Handle = 0;

            Handle = AddSlideCallback(delegate(int SlideType)
            {
                Callback(SlideType);
                RemoveCallback(Handle);
            });
        }