Beispiel #1
0
        /// <summary>
        /// Retrieves 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>
        /// <param name="size">The size of the attribute data... 0 = get the size of the attribute without getting the data. </param>
        /// <returns>If successful, then TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code</returns>
        public static int BASS_ChannelGetAttributeEx(int handle, BASSAttribute attrib, IntPtr value, int size)
        {
            int result;

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

            return(result);
        }