/// <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. /// BASS_ATTRIB_SCANINFO Scanned info. (HSTREAM only) /// other attributes may be supported by add-ons, see the documentation</param> /// <param name="value">The new attribute data</param> /// <param name="size">The size of the attribute data</param> public static void BASS_ChannelSetAttributeEx(int handle, BASSAttribute attrib, IntPtr value, int size) { bool result = false; if (Environment.Is64BitProcess) { result = BassX64.BASS_ChannelSetAttributeEx(handle, attrib, value, size); } else { result = BassX86.BASS_ChannelSetAttributeEx(handle, attrib, value, size); } if (!result) { throw new ApplicationException("BASS_ChannelSetAttributeEx Fail," + BassErrorCode.GetErrorInfo()); } }