using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace NAudio.Dmo
{
    /// <summary>
    /// MP_PARAMINFO
    /// </summary>
    struct MediaParamInfo
    {
#pragma warning disable 0649
        public MediaParamType mpType;
        public MediaParamCurveType mopCaps;
        public float mpdMinValue; // MP_DATA is a float
        public float mpdMaxValue;
        public float mpdNeutralValue;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
        public string szUnitText;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
        public string szLabel;
#pragma warning restore 0649
    }

    /// <summary>
    /// MP_TYPE
    /// </summary>
    enum MediaParamType 
    {
        /// <summary>
        /// MPT_INT
        /// </summary>
        Int,
        /// <summary>
        /// MPT_FLOAT
        /// </summary>
        Float,
        /// <summary>
        /// MPT_BOOL
        /// </summary>
        Bool,
        /// <summary>
        /// MPT_ENUM
        /// </summary>
        Enum,
        /// <summary>
        /// MPT_MAX
        /// </summary>
        Max,
    }

    /// <summary>
    /// MP_CURVE_TYPE
    /// </summary>
    [Flags]
    internal enum MediaParamCurveType
    {
        MP_CURVE_JUMP = 0x1,
        MP_CURVE_LINEAR = 0x2,
        MP_CURVE_SQUARE = 0x4,
        MP_CURVE_INVSQUARE = 0x8,
        MP_CURVE_SINE = 0x10
    }

}
