Пример #1
0
        /// <summary>
        /// Sets the value of a channel's attribute
        /// </summary>
        /// <param name="handle">The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD</param>
        /// <param name="attrib">The attribute to set the value of... one of the following,other attributes may be supported by add-ons, see the documentation</param>
        /// <param name="value">The new attribute value. See the attribute's documentation for details on the possible values. </param>
        public static void BASS_ChannelSetAttribute(int handle, BASSAttribute attrib, float value)
        {
            bool result = false;

            if (Environment.Is64BitProcess)
            {
                result = BassX64.BASS_ChannelSetAttribute(handle, attrib, value);
            }
            else
            {
                result = BassX86.BASS_ChannelSetAttribute(handle, attrib, value);
            }

            if (!result)
            {
                throw new ApplicationException("BASS_ChannelSetAttribute Fail," + BassErrorCode.GetErrorInfo());
            }
        }