Пример #1
0
        /// <summary>
        ///     Get the file position/status of a stream.
        /// </summary>
        /// <param name="mode">The file position/status to retrieve. </param>
        /// <returns>The requested file position/status.</returns>
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to
        ///     load Bass DLL first.
        /// </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="NotAvailableException">Channel object is no longer available.</exception>
        public UInt64 GetFilePosition(FilePositionMode mode)
        {
            CheckAvailable();

            return(AudioStreamModule.StreamGetFilePositionFunction.CheckResult(
                       AudioStreamModule.StreamGetFilePositionFunction.Delegate(Handle, mode)));
        }
Пример #2
0
        /// <summary>
        ///     Get the file position/status of a stream.
        /// </summary>
        /// <param name="mode">The file position/status to retrieve. </param>
        /// <returns>The requested file position/status.</returns>
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to
        ///     load Bass DLL first.
        /// </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="NotAvailableException">Channel object is no longer available.</exception>
        public UInt64 GetFilePosition(FilePositionMode mode)
        {
            CheckAvailable();

            return AudioStreamModule.StreamGetFilePositionFunction.CheckResult(
                AudioStreamModule.StreamGetFilePositionFunction.Delegate(Handle, mode));
        }