示例#1
0
        /// <exception cref="NotAvailableException">Channel object is no longer available.</exception>
        /// <exception cref="BassErrorException">
        ///     Some error occur to call a Bass function, check the error code and error message
        ///     to get more error information.
        /// </exception>
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to
        ///     load Bass DLL first.
        /// </exception>
        IntPtr IChannelInternal.SetSyncCallback(SyncHandlerType type, UInt64 param, SyncHandler handler, IntPtr user)
        {
            CheckAvailable();

            return
                ChannelModule.ChannelSetSyncFunction.CheckResult(ChannelModule.ChannelSetSyncFunction.Delegate(Handle,
                    type, param, handler, user));
        }
示例#2
0
 /// <summary>
 ///     Create <see cref="ChannelSyncCallback" /> with a handler, type of callback, and parameter.
 /// </summary>
 /// <param name="handler">Sync callback handler.</param>
 /// <param name="type">Type of sync callback.</param>
 /// <param name="param">The sync parameter.</param>
 public ChannelSyncCallback(SyncHandler handler, SyncHandlerType type, UInt64 param) : base(handler)
 {
     Type  = type;
     Param = param;
 }