smourier / DirectN

Direct interop Code for .NET Framework, .NET Core and .NET 5+ : DXGI, WIC, DirectX 9 to 12, Direct2D, Direct Write, Direct Composition, Media Foundation, WASAPI, CodecAPI, GDI, Spatial Audio, DVD, Windows Media Player, UWP DXInterop, WinUI3, etc.
MIT License
319 stars 28 forks source link

MFTranscodeGetAudioOutputAvailableTypes #68

Open oven425 opened 4 hours ago

oven425 commented 4 hours ago

DirectN has two MFTranscodeGetAudioOutputAvailableTypes function

    [DllImport("mfplat", ExactSpelling = true)]
    public static extern HRESULT MFTranscodeGetAudioOutputAvailableTypes([MarshalAs(UnmanagedType.LPStruct)] Guid guidSubType, uint dwMFTFlags, IMFAttributes pCodecConfig, out IMFCollection ppAvailableTypes);
    [DllImport("mf", ExactSpelling = true)]
    public static extern HRESULT MFTranscodeGetAudioOutputAvailableTypes([MarshalAs(UnmanagedType.LPStruct)] Guid guidSubType, uint dwMFTFlags, IntPtr pCodecConfig, out IntPtr ppAvailableTypes);

can modify dllimport like this MFTranscodeGetAudioOutputAvailableTypes

smourier commented 2 hours ago

Is this a question?