Table of Contents

Enum SourceReaderFlags

Namespace
NAudio.MediaFoundation
Assembly
NAudio.Wasapi.dll

Contains flags that indicate the status of the IMFSourceReader ReadSample method.

[Flags]
public enum SourceReaderFlags

Fields

AllEffectsRemoved = 512

All transforms inserted by the application have been removed for a particular stream.

MF_SOURCE_READERF_ALLEFFECTSREMOVED

CurrentMediaTypeChanged = 32

The current media type has changed for one or more streams.

MF_SOURCE_READERF_CURRENTMEDIATYPECHANGED

EndOfStream = 2

The source reader reached the end of the stream.

MF_SOURCE_READERF_ENDOFSTREAM

Error = 1

An error occurred. If you receive this flag, do not make any further calls to IMFSourceReader methods.

MF_SOURCE_READERF_ERROR

NativeMediaTypeChanged = 16

The native format has changed for one or more streams.

MF_SOURCE_READERF_NATIVEMEDIATYPECHANGED

NewStream = 4

One or more new streams were created.

MF_SOURCE_READERF_NEWSTREAM

None = 0

No flags set.

StreamTick = 256

There is a gap in the stream. This flag corresponds to an MEStreamTick event from the media source.

MF_SOURCE_READERF_STREAMTICK

Remarks

Windows SDK name: MF_SOURCE_READER_FLAG. Defined in mfreadwrite.h. See MS Learn.