MVH/NAudio-2.2.1/NAudio.Wasapi/Dmo/IMediaObjectInPlace.cs
2024-06-07 00:47:07 +02:00

28 lines
757 B
C#

using System;
using System.Runtime.InteropServices;
namespace NAudio.Dmo
{
/// <summary>
/// defined in mediaobj.h
/// </summary>
[ComImport,
System.Security.SuppressUnmanagedCodeSecurity,
InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
Guid("651B9AD0-0FC7-4AA9-9538-D89931010741")]
internal interface IMediaObjectInPlace
{
[PreserveSig]
int Process(
[In] int size,
[In] IntPtr data,
[In] long refTimeStart,
[In] DmoInPlaceProcessFlags dwFlags);
[PreserveSig]
int Clone([MarshalAs(UnmanagedType.Interface)] out IMediaObjectInPlace mediaObjectInPlace);
[PreserveSig]
int GetLatency(out long latencyTime);
}
}