using System;
using System.Runtime.InteropServices;
namespace NAudio.Dmo
{
///
/// IMediaBuffer Interface
///
[ComImport,
#if !WINDOWS_UWP
System.Security.SuppressUnmanagedCodeSecurity,
#endif
Guid("59eff8b9-938c-4a26-82f2-95cb84cdc837"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IMediaBuffer
{
///
/// Set Length
///
/// Length
/// HRESULT
[PreserveSig]
int SetLength(int length);
///
/// Get Max Length
///
/// Max Length
/// HRESULT
[PreserveSig]
int GetMaxLength(out int maxLength);
///
/// Get Buffer and Length
///
/// Pointer to variable into which to write the Buffer Pointer
/// Pointer to variable into which to write the Valid Data Length
/// HRESULT
[PreserveSig]
int GetBufferAndLength(IntPtr bufferPointerPointer, IntPtr validDataLengthPointer);
}
}