MVH/NAudio-2.2.1/NAudio.Wasapi/Dmo/IMediaParamInfo.cs

36 lines
1012 B
C#
Raw Normal View History

2024-06-07 00:47:07 +02:00
using System;
using System.Runtime.InteropServices;
namespace NAudio.Dmo
{
/// <summary>
/// defined in Medparam.h
/// </summary>
[ComImport,
#if !WINDOWS_UWP
System.Security.SuppressUnmanagedCodeSecurity,
#endif
Guid("6d6cbb60-a223-44aa-842f-a2f06750be6d"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
interface IMediaParamInfo
{
[PreserveSig]
int GetParamCount(out int paramCount);
[PreserveSig] // MP_PARAMINFO
int GetParamInfo(int paramIndex, ref MediaParamInfo paramInfo);
[PreserveSig]
int GetParamText(int paramIndex, out IntPtr paramText);
[PreserveSig]
int GetNumTimeFormats(out int numTimeFormats);
[PreserveSig]
int GetSupportedTimeFormat(int formatIndex, out Guid guidTimeFormat);
[PreserveSig] // MP_TIMEDATA is a DWORD
int GetCurrentTimeFormat(out Guid guidTimeFormat, out int mediaTimeData);
}
}