C# Класс NAudio.MediaFoundation.MediaFoundationApi

Main interface for using Media Foundation with NAudio
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreateAttributes ( int initialSize ) : IMFAttributes

Creates a new attributes store

CreateByteStream ( object stream ) : IMFByteStream

Creates a media foundation byte stream based on a stream object (usable with WinRT streams)

CreateMediaType ( ) : IMFMediaType

Creates a Media type

CreateMediaTypeFromWaveFormat ( WaveFormat waveFormat ) : IMFMediaType

Creates a media type from a WaveFormat

CreateMemoryBuffer ( int bufferSize ) : IMFMediaBuffer

Creates a memory buffer of the specified size

CreateSample ( ) : IMFSample

Creates a sample object

CreateSourceReaderFromByteStream ( IMFByteStream byteStream ) : IMFSourceReader

Creates a source reader based on a byte stream

EnumerateTransforms ( System.Guid category ) : IEnumerable

Enumerate the installed MediaFoundation transforms in the specified category

Shutdown ( ) : void

uninitializes MediaFoundation

Startup ( ) : void

initializes MediaFoundation - only needs to be called once per process

Описание методов

CreateAttributes() публичный статический Метод

Creates a new attributes store
public static CreateAttributes ( int initialSize ) : IMFAttributes
initialSize int Initial size
Результат IMFAttributes

CreateByteStream() публичный статический Метод

Creates a media foundation byte stream based on a stream object (usable with WinRT streams)
public static CreateByteStream ( object stream ) : IMFByteStream
stream object The input stream
Результат IMFByteStream

CreateMediaType() публичный статический Метод

Creates a Media type
public static CreateMediaType ( ) : IMFMediaType
Результат IMFMediaType

CreateMediaTypeFromWaveFormat() публичный статический Метод

Creates a media type from a WaveFormat
public static CreateMediaTypeFromWaveFormat ( WaveFormat waveFormat ) : IMFMediaType
waveFormat NAudio.Wave.WaveFormat
Результат IMFMediaType

CreateMemoryBuffer() публичный статический Метод

Creates a memory buffer of the specified size
public static CreateMemoryBuffer ( int bufferSize ) : IMFMediaBuffer
bufferSize int Memory buffer size in bytes
Результат IMFMediaBuffer

CreateSample() публичный статический Метод

Creates a sample object
public static CreateSample ( ) : IMFSample
Результат IMFSample

CreateSourceReaderFromByteStream() публичный статический Метод

Creates a source reader based on a byte stream
public static CreateSourceReaderFromByteStream ( IMFByteStream byteStream ) : IMFSourceReader
byteStream IMFByteStream The byte stream
Результат IMFSourceReader

EnumerateTransforms() публичный статический Метод

Enumerate the installed MediaFoundation transforms in the specified category
public static EnumerateTransforms ( System.Guid category ) : IEnumerable
category System.Guid A category from MediaFoundationTransformCategories
Результат IEnumerable

Shutdown() публичный статический Метод

uninitializes MediaFoundation
public static Shutdown ( ) : void
Результат void

Startup() публичный статический Метод

initializes MediaFoundation - only needs to be called once per process
public static Startup ( ) : void
Результат void