C# Class NAudio.MediaFoundation.MediaFoundationApi

Main interface for using Media Foundation with NAudio
Mostra file Open project: jishi/Jishi.StreamToSonos Class Usage Examples

Public Methods

Method Description
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

Method Details

CreateAttributes() public static method

Creates a new attributes store
public static CreateAttributes ( int initialSize ) : IMFAttributes
initialSize int Initial size
return IMFAttributes

CreateByteStream() public static method

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
return IMFByteStream

CreateMediaType() public static method

Creates a Media type
public static CreateMediaType ( ) : IMFMediaType
return IMFMediaType

CreateMediaTypeFromWaveFormat() public static method

Creates a media type from a WaveFormat
public static CreateMediaTypeFromWaveFormat ( WaveFormat waveFormat ) : IMFMediaType
waveFormat NAudio.Wave.WaveFormat
return IMFMediaType

CreateMemoryBuffer() public static method

Creates a memory buffer of the specified size
public static CreateMemoryBuffer ( int bufferSize ) : IMFMediaBuffer
bufferSize int Memory buffer size in bytes
return IMFMediaBuffer

CreateSample() public static method

Creates a sample object
public static CreateSample ( ) : IMFSample
return IMFSample

CreateSourceReaderFromByteStream() public static method

Creates a source reader based on a byte stream
public static CreateSourceReaderFromByteStream ( IMFByteStream byteStream ) : IMFSourceReader
byteStream IMFByteStream The byte stream
return IMFSourceReader

EnumerateTransforms() public static method

Enumerate the installed MediaFoundation transforms in the specified category
public static EnumerateTransforms ( System.Guid category ) : IEnumerable
category System.Guid A category from MediaFoundationTransformCategories
return IEnumerable

Shutdown() public static method

uninitializes MediaFoundation
public static Shutdown ( ) : void
return void

Startup() public static method

initializes MediaFoundation - only needs to be called once per process
public static Startup ( ) : void
return void