C# 클래스 NAudio.MediaFoundation.MediaFoundationApi

Main interface for using Media Foundation with NAudio
파일 보기 프로젝트 열기: jishi/Jishi.StreamToSonos 1 사용 예제들

공개 메소드들

메소드 설명
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