NAudio.Wasapi
Implementation of Com IStream
Provide WaveProvider that can apply effects in real time using DMO.
If the audio thread is running on the STA thread, please generate and operate from the same thread.
If the audio thread is running on the MTA thread, please operate on any MTA thread.
Types of DMO effectors to use
Parameters of the effect to be used
Create a new DmoEffectWaveProvider
Input Stream
Stream Wave Format
Reads data from input stream
buffer
offset into buffer
Bytes required
Number of bytes read
Get Effector Parameters
Dispose
Media Foundation Encoder class allows you to use Media Foundation to encode an IWaveProvider
to any supported encoding format
Queries the available bitrates for a given encoding output type, sample rate and number of channels
Audio subtype - a value from the AudioSubtypes class
The sample rate of the PCM to encode
The number of channels of the PCM to encode
An array of available bitrates in average bits per second
Gets all the available media types for a particular
Audio subtype - a value from the AudioSubtypes class
An array of available media types that can be encoded with this subtype
Helper function to simplify encoding Window Media Audio
Should be supported on Vista and above (not tested)
Input provider, must be PCM
Output file path, should end with .wma
Desired bitrate. Use GetEncodeBitrates to find the possibilities for your input type
Helper function to simplify encoding Window Media Audio
Should be supported on Vista and above (not tested)
Input provider, must be PCM
Output stream
Desired bitrate. Use GetEncodeBitrates to find the possibilities for your input type
Helper function to simplify encoding to MP3
By default, will only be available on Windows 8 and above
Input provider, must be PCM
Output file path, should end with .mp3
Desired bitrate. Use GetEncodeBitrates to find the possibilities for your input type
Helper function to simplify encoding to MP3
By default, will only be available on Windows 8 and above
Input provider, must be PCM
Output stream
Desired bitrate. Use GetEncodeBitrates to find the possibilities for your input type
Helper function to simplify encoding to AAC
By default, will only be available on Windows 7 and above
Input provider, must be PCM
Output file path, should end with .mp4 (or .aac on Windows 8)
Desired bitrate. Use GetEncodeBitrates to find the possibilities for your input type
Helper function to simplify encoding to AAC
By default, will only be available on Windows 7 and above
Input provider, must be PCM
Output stream
Desired bitrate. Use GetEncodeBitrates to find the possibilities for your input type
Tries to find the encoding media type with the closest bitrate to that specified
Audio subtype, a value from AudioSubtypes
Your encoder input format (used to check sample rate and channel count)
Your desired bitrate
The closest media type, or null if none available
Creates a new encoder that encodes to the specified output media type
Desired output media type
Encodes a file
Output filename (container type is deduced from the filename)
Input provider (should be PCM, some encoders will also allow IEEE float)
Encodes a file
Output stream
Input provider (should be PCM, some encoders will also allow IEEE float)
One of
Disposes this instance
Disposes this instance
Finalizer
Class for reading any file that Media Foundation can play
Will only work in Windows Vista and above
Automatically converts to PCM
If it is a video file with multiple audio streams, it will pick out the first audio stream
Allows customisation of this reader class
Sets up the default settings for MediaFoundationReader
Allows us to request IEEE float output (n.b. no guarantee this will be accepted)
If true, the reader object created in the constructor is used in Read
Should only be set to true if you are working entirely on an STA thread, or
entirely with MTA threads.
If true, the reposition does not happen immediately, but waits until the
next call to read to be processed.
Default constructor
Creates a new MediaFoundationReader based on the supplied file
Filename (can also be a URL e.g. http:// mms:// file://)
Creates a new MediaFoundationReader based on the supplied file
Filename
Advanced settings
Initializes
Creates the reader (overridable by )
Reads from this wave stream
Buffer to read into
Offset in buffer
Bytes required
Number of bytes read; 0 indicates end of stream
WaveFormat of this stream (n.b. this is after converting to PCM)
The bytesRequired of this stream in bytes (n.b may not be accurate)
Current position within this stream
Cleans up after finishing with this reader
true if called from Dispose
WaveFormat has changed
The Media Foundation Resampler Transform
Creates the Media Foundation Resampler, allowing modifying of sample rate, bit depth and channel count
Source provider, must be PCM
Output format, must also be PCM
Creates a resampler with a specified target output sample rate
Source provider
Output sample rate
Creates and configures the actual Resampler transform
A newly created and configured resampler MFT
Gets or sets the Resampler quality. n.b. set the quality before starting to resample.
1 is lowest quality (linear interpolation) and 60 is best quality
Disposes this resampler
Wave Stream for converting between sample rates
WaveStream to resample using the DMO Resampler
Input Stream
Desired Output Format
Stream Wave Format
Stream length in bytes
Stream position in bytes
Reads data from input stream
buffer
offset into buffer
Bytes required
Number of bytes read
Dispose
True if disposing (not from finalizer)
MediaFoundationReader supporting reading from a stream
Constructs a new media foundation reader from a stream
Creates the reader
WASAPI Loopback Capture
based on a contribution from "Pygmy" - http://naudio.codeplex.com/discussions/203605
Initialises a new instance of the WASAPI capture class
Initialises a new instance of the WASAPI capture class
Capture device to use
Gets the default audio loopback capture device
The default audio loopback capture device
Specify loopback
Support for playback using Wasapi
Playback Stopped
WASAPI Out shared mode, default
WASAPI Out using default audio endpoint
ShareMode - shared or exclusive
Desired latency in milliseconds
WASAPI Out using default audio endpoint
ShareMode - shared or exclusive
true if sync is done with event. false use sleep.
Desired latency in milliseconds
Creates a new WASAPI Output
Device to use
true if sync is done with event. false use sleep.
Desired latency in milliseconds
returns true if reached the end
Gets the current position in bytes from the wave output device.
(n.b. this is not the same thing as the position within your reader
stream)
Position in bytes
Gets a instance indicating the format the hardware is using.
Begin Playback
Stop playback and flush buffers
Stop playback without flushing buffers
Initialize for playing the specified wave stream
IWaveProvider to play
Playback State
Volume
Retrieve the AudioStreamVolume object for this audio stream
This returns the AudioStreamVolume object ONLY for shared audio streams.
This is thrown when an exclusive audio stream is being used.
Dispose
Audio Volume Level
Enables Windows Store apps to access preexisting Component Object Model (COM) interfaces in the WASAPI family.
A device interface ID for an audio device. This is normally retrieved from a DeviceInformation object or one of the methods of the MediaDevice class.
The IID of a COM interface in the WASAPI family, such as IAudioClient.
Interface-specific activation parameters. For more information, see the pActivationParams parameter in IMMDevice::Activate.
Audio Capture Client
Gets a pointer to the buffer
Pointer to the buffer
Gets a pointer to the buffer
Number of frames to read
Buffer flags
Pointer to the buffer
Gets the size of the next packet
Release buffer
Number of frames written
Release the COM object
Windows CoreAudio AudioClient
Activate Async
Retrieves the stream format that the audio engine uses for its internal processing of shared-mode streams.
Can be called before initialize
Initializes the Audio Client
Share Mode
Stream Flags
Buffer Duration
Periodicity
Wave Format
Audio Session GUID (can be null)
Retrieves the size (maximum capacity) of the audio buffer associated with the endpoint. (must initialize first)
Retrieves the maximum latency for the current stream and can be called any time after the stream has been initialized.
Retrieves the number of frames of padding in the endpoint buffer (must initialize first)
Retrieves the length of the periodic interval separating successive processing passes by the audio engine on the data in the endpoint buffer.
(can be called before initialize)
Gets the minimum device period
(can be called before initialize)
Returns the AudioStreamVolume service for this AudioClient.
This returns the AudioStreamVolume object ONLY for shared audio streams.
This is thrown when an exclusive audio stream is being used.
Gets the AudioClockClient service
Gets the AudioRenderClient service
Gets the AudioCaptureClient service
Determines whether if the specified output format is supported
The share mode.
The desired format.
True if the format is supported
Determines if the specified output format is supported in shared mode
Share Mode
Desired Format
Output The closest match format.
True if the format is supported
Starts the audio stream
Stops the audio stream.
Set the Event Handle for buffer synchro.
The Wait Handle to setup
Resets the audio stream
Reset is a control method that the client calls to reset a stopped audio stream.
Resetting the stream flushes all pending data and resets the audio clock stream
position to 0. This method fails if it is called on a stream that is not stopped
Dispose
Audio Client Buffer Flags
None
AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY
AUDCLNT_BUFFERFLAGS_SILENT
AUDCLNT_BUFFERFLAGS_TIMESTAMP_ERROR
The AudioClientProperties structure is used to set the parameters that describe the properties of the client's audio stream.
https://docs.microsoft.com/en-us/windows/win32/api/audioclient/ns-audioclient-audioclientproperties-r1
The size of the buffer for the audio stream.
Boolean value to indicate whether or not the audio stream is hardware-offloaded
An enumeration that is used to specify the category of the audio stream.
A bit-field describing the characteristics of the stream. Supported in Windows 8.1 and later.
AUDCLNT_SHAREMODE
AUDCLNT_SHAREMODE_SHARED,
AUDCLNT_SHAREMODE_EXCLUSIVE
AUDCLNT_STREAMFLAGS
https://docs.microsoft.com/en-us/windows/win32/coreaudio/audclnt-streamflags-xxx-constants
None
AUDCLNT_STREAMFLAGS_CROSSPROCESS
The audio stream will be a member of a cross-process audio session.
AUDCLNT_STREAMFLAGS_LOOPBACK
The audio stream will operate in loopback mode
AUDCLNT_STREAMFLAGS_EVENTCALLBACK
Processing of the audio buffer by the client will be event driven
AUDCLNT_STREAMFLAGS_NOPERSIST
The volume and mute settings for an audio session will not persist across application restarts
AUDCLNT_STREAMFLAGS_RATEADJUST
The sample rate of the stream is adjusted to a rate specified by an application.
AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY
When used with AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM, a sample rate converter with better quality
than the default conversion but with a higher performance cost is used. This should be used if
the audio is ultimately intended to be heard by humans as opposed to other scenarios such as
pumping silence or populating a meter.
AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM
A channel matrixer and a sample rate converter are inserted as necessary to convert between the uncompressed format supplied to IAudioClient::Initialize and the audio engine mix format.
AUDIOCLIENT_ACTIVATION_PARAMS
https://docs.microsoft.com/en-us/windows/win32/api/audioclientactivationparams/ns-audioclientactivationparams-audioclient_activation_params
AUDIOCLIENT_PROCESS_LOOPBACK_PARAMS
https://docs.microsoft.com/en-us/windows/win32/api/audioclientactivationparams/ns-audioclientactivationparams-audioclient_process_loopback_params
AUDIOCLIENT_PROCESS_LOOPBACK_PARAMS
The ID of the process for which the render streams, and the render streams of its child processes, will be included or excluded when activating the process loopback stream.
PROCESS_LOOPBACK_MODE
https://docs.microsoft.com/en-us/windows/win32/api/audioclientactivationparams/ne-audioclientactivationparams-process_loopback_mode
PROCESS_LOOPBACK_MODE_INCLUDE_TARGET_PROCESS_TREE
Render streams from the specified process and its child processes are included in the activated process loopback stream.
PROCESS_LOOPBACK_MODE_EXCLUDE_TARGET_PROCESS_TREE
Render streams from the specified process and its child processes are excluded from the activated process loopback stream.
AUDIOCLIENT_ACTIVATION_TYPE
https://docs.microsoft.com/en-us/windows/win32/api/audioclientactivationparams/ne-audioclientactivationparams-audioclient_activation_type
AUDIOCLIENT_ACTIVATION_TYPE_DEFAULT
Default activation.
AUDIOCLIENT_ACTIVATION_TYPE_PROCESS_LOOPBACK
Process loopback activation, allowing for the inclusion or exclusion of audio rendered by the specified process and its child processes.
Defines values that describe the characteristics of an audio stream.
AUDCLNT_STREAMOPTIONS
https://docs.microsoft.com/en-us/windows/win32/api/audioclient/ne-audioclient-audclnt_streamoptions
AUDCLNT_STREAMOPTIONS_NONE
No stream options.
AUDCLNT_STREAMOPTIONS_RAW
The audio stream is a 'raw' stream that bypasses all signal processing except for endpoint specific, always-on processing in the APO, driver, and hardware.
AUDCLNT_STREAMOPTIONS_MATCH_FORMAT
The audio client is requesting that the audio engine match the format proposed by the client. The audio engine
will match this format only if the format is supported by the audio driver and associated APOs.
AUDCLNT_STREAMOPTIONS_AMBISONICS
Audio Clock Client
Characteristics
Frequency
Get Position
Adjusted Position
Can Adjust Position
Dispose
Audio Endpoint Volume
GUID to pass to AudioEndpointVolumeCallback
On Volume Notification
Volume Range
Hardware Support
Step Information
Channels
Master Volume Level
Master Volume Level Scalar
Mute
Volume Step Up
Volume Step Down
Creates a new Audio endpoint volume
IAudioEndpointVolume COM interface
Dispose
Finalizer
Audio Endpoint Volume Channel
GUID to pass to AudioEndpointVolumeCallback
Volume Level
Volume Level Scalar
Audio Endpoint Volume Channels
Channel Count
Indexer - get a specific channel
Audio Endpoint Volume Notifiaction Delegate
Audio Volume Notification Data
Audio Endpoint Volume Step Information
Step
StepCount
Audio Endpoint Volume Volume Range
Minimum Decibels
Maximum Decibels
Increment Decibels
Audio Meter Information
Peak Values
Hardware Support
Master Peak Value
Audio Meter Information Channels
Metering Channel Count
Get Peak value
Channel index
Peak value
Audio Render Client
Gets a pointer to the buffer
Number of frames requested
Pointer to the buffer
Release buffer
Number of frames written
Buffer flags
Release the COM object
AudioSessionControl object for information
regarding an audio session
Constructor.
Dispose
Finalizer
Audio meter information of the audio session.
Simple audio volume of the audio session (for volume and mute status).
The current state of the audio session.
The name of the audio session.
the path to the icon shown in the mixer.
The session identifier of the audio session.
The session instance identifier of the audio session.
The process identifier of the audio session.
Is the session a system sounds session.
the grouping param for an audio session grouping
For chanigng the grouping param and supplying the context of said change
Registers an even client for callbacks
Unregisters an event client from receiving callbacks
AudioSessionEvents callback implementation
Constructor.
Notifies the client that the display name for the session has changed.
The new display name for the session.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Notifies the client that the display icon for the session has changed.
The path for the new display icon for the session.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Notifies the client that the volume level or muting state of the session has changed.
The new volume level for the audio session.
The new muting state.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Notifies the client that the volume level of an audio channel in the session submix has changed.
The channel count.
An array of volumnes cooresponding with each channel index.
The number of the channel whose volume level changed.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Notifies the client that the grouping parameter for the session has changed.
The new grouping parameter for the session.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Notifies the client that the stream-activity state of the session has changed.
The new session state.
An HRESULT code indicating whether the operation succeeded of failed.
Notifies the client that the session has been disconnected.
The reason that the audio session was disconnected.
An HRESULT code indicating whether the operation succeeded of failed.
AudioSessionManager
Designed to manage audio sessions and in particuar the
SimpleAudioVolume interface to adjust a session volume
Session created delegate
Occurs when audio session has been added (for example run another program that use audio playback).
SimpleAudioVolume object
for adjusting the volume for the user session
AudioSessionControl object
for registring for callbacks and other session information
Refresh session of current device.
Returns list of sessions of current device.
Dispose.
Finalizer.
Specifies the category of an audio stream.
https://docs.microsoft.com/en-us/windows/win32/api/audiosessiontypes/ne-audiosessiontypes-audio_stream_category
AUDIO_STREAM_CATEGORY
Other audio stream.
Media that will only stream when the app is in the foreground.
Media that can be streamed when the app is in the background.
Real-time communications, such as VOIP or chat.
Alert sounds.
Sound effects.
Game sound effects.
Background audio for games.
Game chat audio. Similar to AudioCategory_Communications except that AudioCategory_GameChat will not attenuate other streams.
Speech
Stream that includes audio with dialog.
Stream that includes audio without dialog.
Media is audio captured with the intent of capturing voice sources located in the ‘far field’. (Far away from the microphone.)
Media is captured audio that requires consistent speech processing for the captured audio stream across all Windows devices. Used by applications that process speech data using machine learning algorithms.
Media is audio captured with the intent of enabling dictation or typing by voice.
Manages the AudioStreamVolume for the .
Verify that the channel index is valid.
Return the current stream volumes for all channels
An array of volume levels between 0.0 and 1.0 for each channel in the audio stream.
Returns the current number of channels in this audio stream.
Return the current volume for the requested channel.
The 0 based index into the channels.
The volume level for the channel between 0.0 and 1.0.
Set the volume level for each channel of the audio stream.
An array of volume levels (between 0.0 and 1.0) one for each channel.
A volume level MUST be supplied for reach channel in the audio stream.
Thrown when does not contain elements.
Sets the volume level for one channel in the audio stream.
The 0-based index into the channels to adjust the volume of.
The volume level between 0.0 and 1.0 for this channel of the audio stream.
Dispose
Release/cleanup objects during Dispose/finalization.
True if disposing and false if being finalized.
Audio Volume Notification Data
Event Context
Muted
Guid that raised the event
Master Volume
Channels
Channel Volume
Audio Volume Notification Data
Connector
Connects this connector to a connector in another device-topology object
Retreives the type of this connector
Retreives the data flow of this connector
Disconnects this connector from it's connected connector (if connected)
Indicates whether this connector is connected to another connector
Retreives the connector this connector is connected to (if connected)
Retreives the global ID of the connector this connector is connected to (if connected)
Retreives the device ID of the audio device this connector is connected to (if connected)
Connector Type
The connector is part of a connection of unknown type.
The connector is part of a physical connection to an auxiliary device that is installed inside the system chassis
The connector is part of a physical connection to an external device.
The connector is part of a software-configured I/O connection (typically a DMA channel) between system memory and an audio hardware device on an audio adapter.
The connector is part of a permanent connection that is fixed and cannot be configured under software control.
The connector is part of a connection to a network.
The EDataFlow enumeration defines constants that indicate the direction
in which audio data flows between an audio endpoint device and an application
Audio rendering stream.
Audio data flows from the application to the audio endpoint device, which renders the stream.
Audio capture stream. Audio data flows from the audio endpoint device that captures the stream,
to the application
Audio rendering or capture stream. Audio data can flow either from the application to the audio
endpoint device, or from the audio endpoint device to the application.
Device State
DEVICE_STATE_ACTIVE
DEVICE_STATE_DISABLED
DEVICE_STATE_NOTPRESENT
DEVICE_STATE_UNPLUGGED
DEVICE_STATEMASK_ALL
Windows CoreAudio DeviceTopology
Retrieves the number of connections associated with this device-topology object
Retrieves the connector at the supplied index
Retrieves the device id of the device represented by this device-topology object
Endpoint Hardware Support
Volume
Mute
Meter
Representation of binary large object container.
Length of binary object.
Pointer to buffer storing data.
is defined in WTypes.h
Audio Client WASAPI Error Codes (HResult)
AUDCLNT_E_NOT_INITIALIZED
AUDCLNT_E_ALREADY_INITIALIZED
AUDCLNT_E_WRONG_ENDPOINT_TYPE
AUDCLNT_E_DEVICE_INVALIDATED
AUDCLNT_E_NOT_STOPPED
AUDCLNT_E_BUFFER_TOO_LARGE
AUDCLNT_E_OUT_OF_ORDER
AUDCLNT_E_UNSUPPORTED_FORMAT
AUDCLNT_E_INVALID_SIZE
AUDCLNT_E_DEVICE_IN_USE
AUDCLNT_E_BUFFER_OPERATION_PENDING
AUDCLNT_E_THREAD_NOT_REGISTERED
AUDCLNT_E_NO_SINGLE_PROCESS
AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED
AUDCLNT_E_ENDPOINT_CREATE_FAILED
AUDCLNT_E_SERVICE_NOT_RUNNING
AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED
AUDCLNT_E_EXCLUSIVE_MODE_ONLY
AUDCLNT_E_BUFDURATION_PERIOD_NOT_EQUAL
AUDCLNT_E_EVENTHANDLE_NOT_SET
AUDCLNT_E_INCORRECT_BUFFER_SIZE
AUDCLNT_E_BUFFER_SIZE_ERROR
AUDCLNT_E_CPUUSAGE_EXCEEDED
AUDCLNT_E_BUFFER_ERROR
AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED
AUDCLNT_E_INVALID_DEVICE_PERIOD
AUDCLNT_E_INVALID_STREAM_FLAG
AUDCLNT_E_ENDPOINT_OFFLOAD_NOT_CAPABLE
AUDCLNT_E_OUT_OF_OFFLOAD_RESOURCES
AUDCLNT_E_OFFLOAD_MODE_ONLY
AUDCLNT_E_NONOFFLOAD_MODE_ONLY
AUDCLNT_E_RESOURCES_INVALIDATED
AUDCLNT_E_RAW_MODE_UNSUPPORTED
AUDCLNT_E_ENGINE_PERIODICITY_LOCKED
AUDCLNT_E_ENGINE_FORMAT_LOCKED
AUDCLNT_E_HEADTRACKING_ENABLED
AUDCLNT_E_HEADTRACKING_UNSUPPORTED
Windows CoreAudio IAudioClient interface
Defined in AudioClient.h
The GetBufferSize method retrieves the size (maximum capacity) of the endpoint buffer.
The GetService method accesses additional services from the audio client object.
The interface ID for the requested service.
Pointer to a pointer variable into which the method writes the address of an instance of the requested interface.
https://docs.microsoft.com/en-us/windows/win32/api/audioclient/nn-audioclient-iaudioclient2
The IsOffloadCapable method retrieves information about whether or not the endpoint on which a stream is created is capable of supporting an offloaded audio stream.
An enumeration that specifies the category of an audio stream.
A pointer to a Boolean value. TRUE indicates that the endpoint is offload-capable. FALSE indicates that the endpoint is not offload-capable.
Pointer to an AudioClientProperties structure.
The GetBufferSizeLimits method returns the buffer size limits of the hardware audio engine in 100-nanosecond units.
A pointer to the target format that is being queried for the buffer size limit.
Boolean value to indicate whether or not the stream can be event-driven.
Returns a pointer to the minimum buffer size (in 100-nanosecond units) that is required for the underlying hardware audio engine to operate at the format specified in the pFormat parameter, without frequent audio glitching.
Returns a pointer to the maximum buffer size (in 100-nanosecond units) that the underlying hardware audio engine can support for the format specified in the pFormat parameter.
Defined in AudioClient.h
Defined in AudioClient.h
Windows CoreAudio IAudioSessionControl interface
Defined in AudioPolicy.h
Retrieves the current state of the audio session.
Receives the current session state.
An HRESULT code indicating whether the operation succeeded of failed.
Retrieves the display name for the audio session.
Receives a string that contains the display name.
An HRESULT code indicating whether the operation succeeded of failed.
Assigns a display name to the current audio session.
A string that contains the new display name for the session.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Retrieves the path for the display icon for the audio session.
Receives a string that specifies the fully qualified path of the file that contains the icon.
An HRESULT code indicating whether the operation succeeded of failed.
Assigns a display icon to the current session.
A string that specifies the fully qualified path of the file that contains the new icon.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Retrieves the grouping parameter of the audio session.
Receives the grouping parameter ID.
An HRESULT code indicating whether the operation succeeded of failed.
Assigns a session to a grouping of sessions.
The new grouping parameter ID.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Registers the client to receive notifications of session events, including changes in the session state.
A client-implemented interface.
An HRESULT code indicating whether the operation succeeded of failed.
Deletes a previous registration by the client to receive notifications.
A client-implemented interface.
An HRESULT code indicating whether the operation succeeded of failed.
Windows CoreAudio IAudioSessionControl interface
Defined in AudioPolicy.h
Retrieves the current state of the audio session.
Receives the current session state.
An HRESULT code indicating whether the operation succeeded of failed.
Retrieves the display name for the audio session.
Receives a string that contains the display name.
An HRESULT code indicating whether the operation succeeded of failed.
Assigns a display name to the current audio session.
A string that contains the new display name for the session.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Retrieves the path for the display icon for the audio session.
Receives a string that specifies the fully qualified path of the file that contains the icon.
An HRESULT code indicating whether the operation succeeded of failed.
Assigns a display icon to the current session.
A string that specifies the fully qualified path of the file that contains the new icon.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Retrieves the grouping parameter of the audio session.
Receives the grouping parameter ID.
An HRESULT code indicating whether the operation succeeded of failed.
Assigns a session to a grouping of sessions.
The new grouping parameter ID.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Registers the client to receive notifications of session events, including changes in the session state.
A client-implemented interface.
An HRESULT code indicating whether the operation succeeded of failed.
Deletes a previous registration by the client to receive notifications.
A client-implemented interface.
An HRESULT code indicating whether the operation succeeded of failed.
Retrieves the identifier for the audio session.
Receives the session identifier.
An HRESULT code indicating whether the operation succeeded of failed.
Retrieves the identifier of the audio session instance.
Receives the identifier of a particular instance.
An HRESULT code indicating whether the operation succeeded of failed.
Retrieves the process identifier of the audio session.
Receives the process identifier of the audio session.
An HRESULT code indicating whether the operation succeeded of failed.
Indicates whether the session is a system sounds session.
An HRESULT code indicating whether the operation succeeded of failed.
Enables or disables the default stream attenuation experience (auto-ducking) provided by the system.
A variable that enables or disables system auto-ducking.
An HRESULT code indicating whether the operation succeeded of failed.
Defines constants that indicate the current state of an audio session.
MSDN Reference: http://msdn.microsoft.com/en-us/library/dd370792.aspx
The audio session is inactive.
The audio session is active.
The audio session has expired.
Defines constants that indicate a reason for an audio session being disconnected.
MSDN Reference: Unknown
The user removed the audio endpoint device.
The Windows audio service has stopped.
The stream format changed for the device that the audio session is connected to.
The user logged off the WTS session that the audio session was running in.
The WTS session that the audio session was running in was disconnected.
The (shared-mode) audio session was disconnected to make the audio endpoint device available for an exclusive-mode connection.
Windows CoreAudio IAudioSessionControl interface
Defined in AudioPolicy.h
Notifies the client that the display name for the session has changed.
The new display name for the session.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Notifies the client that the display icon for the session has changed.
The path for the new display icon for the session.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Notifies the client that the volume level or muting state of the session has changed.
The new volume level for the audio session.
The new muting state.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Notifies the client that the volume level of an audio channel in the session submix has changed.
The channel count.
An array of volumnes cooresponding with each channel index.
The number of the channel whose volume level changed.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Notifies the client that the grouping parameter for the session has changed.
The new grouping parameter for the session.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Notifies the client that the stream-activity state of the session has changed.
The new session state.
An HRESULT code indicating whether the operation succeeded of failed.
Notifies the client that the session has been disconnected.
The reason that the audio session was disconnected.
An HRESULT code indicating whether the operation succeeded of failed.
interface to receive session related events
notification of volume changes including muting of audio session
the current volume
the current mute state, true muted, false otherwise
notification of display name changed
the current display name
notification of icon path changed
the current icon path
notification of the client that the volume level of an audio channel in the session submix has changed
The channel count.
An array of volumnes cooresponding with each channel index.
The number of the channel whose volume level changed.
notification of the client that the grouping parameter for the session has changed
>The new grouping parameter for the session.
notification of the client that the stream-activity state of the session has changed
The new session state.
notification of the client that the session has been disconnected
The reason that the audio session was disconnected.
Windows CoreAudio IAudioSessionManager interface
Defined in AudioPolicy.h
Retrieves an audio session control.
A new or existing session ID.
Audio session flags.
Receives an interface for the audio session.
An HRESULT code indicating whether the operation succeeded of failed.
Retrieves a simple audio volume control.
A new or existing session ID.
Audio session flags.
Receives an interface for the audio session.
An HRESULT code indicating whether the operation succeeded of failed.
Retrieves an audio session control.
A new or existing session ID.
Audio session flags.
Receives an interface for the audio session.
An HRESULT code indicating whether the operation succeeded of failed.
Retrieves a simple audio volume control.
A new or existing session ID.
Audio session flags.
Receives an interface for the audio session.
An HRESULT code indicating whether the operation succeeded of failed.
Windows CoreAudio IAudioSessionNotification interface
Defined in AudioPolicy.h
session being added
An HRESULT code indicating whether the operation succeeded of failed.
Windows CoreAudio IConnector interface
Defined in devicetopology.h
Windows CoreAudio IDeviceTopology interface
Defined in devicetopology.h
defined in MMDeviceAPI.h
IMMNotificationClient
Device State Changed
Device Added
Device Removed
Default Device Changed
Property Value Changed
Windows CoreAudio IPart interface
Defined in devicetopology.h
Windows CoreAudio IPartsList interface
Defined in devicetopology.h
is defined in propsys.h
Windows CoreAudio ISimpleAudioVolume interface
Defined in AudioClient.h
Sets the master volume level for the audio session.
The new volume level expressed as a normalized value between 0.0 and 1.0.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Retrieves the client volume level for the audio session.
Receives the volume level expressed as a normalized value between 0.0 and 1.0.
An HRESULT code indicating whether the operation succeeded of failed.
Sets the muting state for the audio session.
The new muting state.
A user context value that is passed to the notification callback.
An HRESULT code indicating whether the operation succeeded of failed.
Retrieves the current muting state for the audio session.
Receives the muting state.
An HRESULT code indicating whether the operation succeeded of failed.
implements IMMDeviceEnumerator
MMDevice STGM enumeration
Read-only access mode.
Write-only access mode.
Read-write access mode.
from Propidl.h.
http://msdn.microsoft.com/en-us/library/aa380072(VS.85).aspx
contains a union so we have to do an explicit layout
Value type tag.
Reserved1.
Reserved2.
Reserved3.
cVal.
bVal.
iVal.
uiVal.
lVal.
ulVal.
intVal.
uintVal.
hVal.
uhVal.
fltVal.
dblVal.
boolVal.
scode.
Date time.
Binary large object.
Pointer value.
Creates a new PropVariant containing a long value
Helper method to gets blob data
Interprets a blob as an array of structs
Gets the type of data in this PropVariant
Property value
Clears with a known pointer
MM Device
Initializes the device's property store.
The storage-access mode to open store for.
Administrative client is required for Write and ReadWrite modes.
Audio Client
Makes a new one each call to allow caller to manage when to dispose
n.b. should probably not be a property anymore
Audio Meter Information
Audio Endpoint Volume
AudioSessionManager instance
DeviceTopology instance
Properties
Friendly name for the endpoint
Friendly name of device
Icon path of device
Device Instance Id of Device
Device ID
Data Flow
Device State
To string
Dispose
Finalizer
Multimedia Device Collection
Device count
Get device by index
Device index
Device at the specified index
Get Enumerator
Device enumerator
MM Device Enumerator
Creates a new MM Device Enumerator
Enumerate Audio Endpoints
Desired DataFlow
State Mask
Device Collection
Get Default Endpoint
Data Flow
Role
Device
Check to see if a default audio end point exists without needing an exception.
Data Flow
Role
True if one exists, and false if one does not exist.
Get device by ID
Device ID
Device
Registers a call back for Device Events
Object implementing IMMNotificationClient type casted as IMMNotificationClient interface
Unregisters a call back for Device Events
Object implementing IMMNotificationClient type casted as IMMNotificationClient interface
Called to dispose/finalize contained objects.
True if disposing, false if called from a finalizer.
Audio Part
Name
Local ID
Global ID
Part Type
Sub Type
Control Interface Count
Get Control Interface by index
Incoming parts list
Outgoing parts list
Device topology
Audio Volume Level
Audio Mute
Jack Description
PROPERTYKEY is defined in wtypes.h
Format ID
Property ID
Property Keys
PKEY_DeviceInterface_FriendlyName
PKEY_AudioEndpoint_FormFactor
PKEY_AudioEndpoint_ControlPanelPageProvider
PKEY_AudioEndpoint_Association
PKEY_AudioEndpoint_PhysicalSpeakers
PKEY_AudioEndpoint_GUID
PKEY_AudioEndpoint_Disable_SysFx
PKEY_AudioEndpoint_FullRangeSpeakers
PKEY_AudioEndpoint_Supports_EventDriven_Mode
PKEY_AudioEndpoint_JackSubType
PKEY_AudioEngine_DeviceFormat
PKEY_AudioEngine_OEMFormat
PKEY _Devie_FriendlyName
PKEY _Device_IconPath
Device description property.
Id of controller device for endpoint device property.
Device interface key property.
System-supplied device instance identification string, assigned by PnP manager, persistent across system restarts.
Property Store class, only supports reading properties at the moment.
Property Count
Gets property by index
Property index
The property
Contains property guid
Looks for a specific key
True if found
Indexer by guid
Property Key
Property or null if not found
Gets property key at sepecified index
Index
Property key
Gets property value at specified index
Index
Property value
Sets property value at specified key.
Key of property to set.
Value to write.
Saves a property change.
Creates a new property store
IPropertyStore COM interface
Property Store Property
Property Key
Property Value
The ERole enumeration defines constants that indicate the role
that the system has assigned to an audio endpoint device
Games, system notification sounds, and voice commands.
Music, movies, narration, and live music recording
Voice communications (talking to another person).
Collection of sessions.
Returns session at index.
Number of current sessions.
Windows CoreAudio SimpleAudioVolume
Creates a new Audio endpoint volume
ISimpleAudioVolume COM interface
Dispose
Finalizer
Allows the user to adjust the volume from
0.0 to 1.0
Mute
Audio Capture using Wasapi
See http://msdn.microsoft.com/en-us/library/dd370800%28VS.85%29.aspx
Indicates recorded data is available
Indicates that all recorded data has now been received.
Initialises a new instance of the WASAPI capture class
Initialises a new instance of the WASAPI capture class
Capture device to use
Initializes a new instance of the class.
The capture device.
true if sync is done with event. false use sleep.
Initializes a new instance of the class.
The capture device.
true if sync is done with event. false use sleep.
Length of the audio buffer in milliseconds. A lower value means lower latency but increased CPU usage.
Share Mode - set before calling StartRecording
Current Capturing State
Capturing wave format
Gets the default audio capture device
The default audio capture device
To allow overrides to specify different flags (e.g. loopback)
Start Capturing
Stop Capturing (requests a stop, wait for RecordingStopped event to know it has finished)
Dispose
MP3 Frame decompressor using the Windows Media MP3 Decoder DMO object
Initializes a new instance of the DMO MP3 Frame decompressor
Converted PCM WaveFormat
Decompress a single frame of MP3
Alerts us that a reposition has occured so the MP3 decoder needs to reset its state
Dispose of this obejct and clean up resources
Contains the name and CLSID of a DirectX Media Object
Name
CLSID
Initializes a new instance of DmoDescriptor
DirectX Media Object Enumerator
Get audio effect names
Audio effect names
Get audio encoder names
Audio encoder names
Get audio decoder names
Audio decoder names
DMO Guids for use with DMOEnum
dmoreg.h
MediaErr.h
DMO Inplace Process Flags
DMO_INPLACE_NORMAL
DMO_INPLACE_ZERO
Return value when Process is executed with IMediaObjectInPlace
Success. There is no remaining data to process.
Success. There is still data to process.
DMO Input Data Buffer Flags
None
DMO_INPUT_DATA_BUFFERF_SYNCPOINT
DMO_INPUT_DATA_BUFFERF_TIME
DMO_INPUT_DATA_BUFFERF_TIMELENGTH
http://msdn.microsoft.com/en-us/library/aa929922.aspx
DMO_MEDIA_TYPE
Major type
Major type name
Subtype
Subtype name
Fixed size samples
Sample size
Format type
Format type name
Gets the structure as a Wave format (if it is one)
Sets this object up to point to a wave format
Wave format structure
DMO Output Data Buffer
Creates a new DMO Output Data Buffer structure
Maximum buffer size
Dispose
Media Buffer
Length of data in buffer
Status Flags
Timestamp
Duration
Retrives the data in this buffer
Buffer to receive data
Offset into buffer
Is more data available
If true, ProcessOuput should be called again
DMO Output Data Buffer Flags
None
DMO_OUTPUT_DATA_BUFFERF_SYNCPOINT
DMO_OUTPUT_DATA_BUFFERF_TIME
DMO_OUTPUT_DATA_BUFFERF_TIMELENGTH
DMO_OUTPUT_DATA_BUFFERF_INCOMPLETE
DMO_PARTIAL_MEDIATYPE
DMO Process Output Flags
None
DMO_PROCESS_OUTPUT_DISCARD_WHEN_NO_BUFFER
Chorus Phase
DSFXCHORUS_PHASE_NEG_180
DSFXCHORUS_PHASE_NEG_90
DSFXCHORUS_PHASE_ZERO
DSFXCHORUS_PHASE_90
DSFXCHORUS_PHASE_180
Chorus Wave Form
DSFXCHORUS_WAVE_TRIANGLE
DSFXCHORUS_WAVE_SIN
DMO Chorus Effect
DMO Chorus Params
DSFXCHORUS_WETDRYMIX_MIN
DSFXCHORUS_WETDRYMIX_MAX
DSFXCHORUS_WETDRYMIX_DEFAULT
DSFXCHORUS_DEPTH_MIN
DSFXCHORUS_DEPTH_MAX
DSFXCHORUS_DEPTH_DEFAULT
DSFXCHORUS_FEEDBACK_MIN
DSFXCHORUS_FEEDBACK_MAX
DSFXCHORUS_FEEDBACK_DEFAULT
DSFXCHORUS_FREQUENCY_MIN
DSFXCHORUS_FREQUENCY_MAX
DSFXCHORUS_FREQUENCY_DEFAULT
DSFXCHORUS_WAVE_DEFAULT
DSFXCHORUS_DELAY_MIN
DSFXCHORUS_DELAY_MAX
DSFXCHORUS_DELAY_DEFAULT
DSFXCHORUS_PHASE_DEFAULT
Ratio of wet (processed) signal to dry (unprocessed) signal.
Percentage by which the delay time is modulated by the low-frequency oscillator,
in hundredths of a percentage point.
Percentage of output signal to feed back into the effect's input.
Frequency of the LFO.
Waveform shape of the LFO.
Number of milliseconds the input is delayed before it is played back.
Phase differential between left and right LFOs.
Media Object
Media Object InPlace
Effect Parameter
Create new DMO Chorus
Dispose code
DMO Compressor Effect
DMO Compressor Params
DSFXCOMPRESSOR_GAIN_MIN
DSFXCOMPRESSOR_GAIN_MAX
DSFXCOMPRESSOR_GAIN_DEFAULT
DSFXCOMPRESSOR_ATTACK_MIN
DSFXCOMPRESSOR_ATTACK_MAX
DSFXCOMPRESSOR_ATTACK_DEFAULT
DSFXCOMPRESSOR_RELEASE_MIN
DSFXCOMPRESSOR_RELEASE_MAX
DSFXCOMPRESSOR_RELEASE_DEFAULT
DSFXCOMPRESSOR_THRESHOLD_MIN
DSFXCOMPRESSOR_THRESHOLD_MAX
DSFXCOMPRESSOR_THRESHOLD_DEFAULT
DSFXCOMPRESSOR_RATIO_MIN
DSFXCOMPRESSOR_RATIO_MAX
DSFXCOMPRESSOR_RATIO_DEFAULT
DSFXCOMPRESSOR_PREDELAY_MIN
DSFXCOMPRESSOR_PREDELAY_MAX
DSFXCOMPRESSOR_PREDELAY_DEFAULT
Output gain of signal after compression.
Time before compression reaches its full value.
Speed at which compression is stopped after input drops below Threshold.
Point at which compression begins, in decibels.
Compression ratio
Time after Threshold is reached before attack phase is started, in milliseconds.
Media Object
Media Object InPlace
Effect Parameter
Create new DMO Compressor
Dispose code
DMO Distortion Effect
DMO Distortion Params
DSFXDISTORTION_GAIN_MIN
DSFXDISTORTION_GAIN_MAX
DSFXDISTORTION_GAIN_DEFAULT
DSFXDISTORTION_EDGE_MIN
DSFXDISTORTION_EDGE_MAX
DSFXDISTORTION_EDGE_DEFAULT
DSFXDISTORTION_POSTEQCENTERFREQUENCY_MIN
DSFXDISTORTION_POSTEQCENTERFREQUENCY_MAX
DSFXDISTORTION_POSTEQCENTERFREQUENCY_DEFAULT
DSFXDISTORTION_POSTEQBANDWIDTH_MIN
DSFXDISTORTION_POSTEQBANDWIDTH_MAX
DSFXDISTORTION_POSTEQBANDWIDTH_DEFAULT
DSFXDISTORTION_PRELOWPASSCUTOFF_MIN
DSFXDISTORTION_PRELOWPASSCUTOFF_MAX
DSFXDISTORTION_PRELOWPASSCUTOFF_DEFAULT
Amount of signal change after distortion.
Percentage of distortion intensity.
Center frequency of harmonic content addition.
Width of frequency band that determines range of harmonic content addition.
Filter cutoff for high-frequency harmonics attenuation.
Media Object
Media Object InPlace
Effect Parameter
Create new DMO Distortion
Dispose code
Dmo Echo Effect
DMO Echo Params
DSFXECHO_WETDRYMIX_MIN
DSFXECHO_WETDRYMIX_MAX
DSFXECHO_WETDRYMIX_DEFAULT
DSFXECHO_FEEDBACK_MIN
DSFXECHO_FEEDBACK_MAX
DSFXECHO_FEEDBACK_DEFAULT
DSFXECHO_LEFTDELAY_MIN
DSFXECHO_LEFTDELAY_MAX
DSFXECHO_LEFTDELAY_DEFAULT
DSFXECHO_RIGHTDELAY_MIN
DSFXECHO_RIGHTDELAY_MAX
DSFXECHO_RIGHTDELAY_DEFAULT
DSFXECHO_PANDELAY_DEFAULT
Ratio of wet (processed) signal to dry (unprocessed) signal.
Percentage of output fed back into input.
Delay for left channel, in milliseconds.
Delay for right channel, in milliseconds.
Value that specifies whether to swap left and right delays with each successive echo.
Media Object
Media Object InPlace
Effect Parameter
Create new DMO Echo
Dispose code
DMO Flanger Effect
DMO Flanger Params
DSFXFLANGER_WETDRYMIX_MIN
DSFXFLANGER_WETDRYMIX_MAX
DSFXFLANGER_WETDRYMIX_DEFAULT
DSFXFLANGER_DEPTH_MIN
DSFXFLANGER_DEPTH_MAX
DSFXFLANGER_DEPTH_DEFAULT
DSFXFLANGER_FEEDBACK_MIN
DSFXFLANGER_FEEDBACK_MAX
DSFXFLANGER_FEEDBACK_DEFAULT
DSFXFLANGER_FREQUENCY_MIN
DSFXFLANGER_FREQUENCY_MAX
DSFXFLANGER_FREQUENCY_DEFAULT
DSFXFLANGER_WAVE_DEFAULT
DSFXFLANGER_DELAY_MIN
DSFXFLANGER_DELAY_MAX
DSFXFLANGER_DELAY_DEFAULT
DSFXFLANGER_PHASE_DEFAULT
Ratio of wet (processed) signal to dry (unprocessed) signal.
Percentage by which the delay time is modulated by the low-frequency oscillator,
in hundredths of a percentage point.
Percentage of output signal to feed back into the effect's input.
Frequency of the LFO.
Waveform shape of the LFO.
Number of milliseconds the input is delayed before it is played back.
Phase differential between left and right LFOs.
Media Object
Media Object InPlace
Effect Parameter
Create new DMO Flanger
Dispose code
DMO Gargle Effect
DMO Gargle Params
DSFXGARGLE_RATEHZ_MIN
DSFXGARGLE_RATEHZ_MAX
DSFXGARGLE_RATEHZ_DEFAULT
DSFXGARGLE_WAVE_DEFAULT
Rate of modulation in hz
Gargle Wave Shape
Media Object
Media Object InPlace
Effect Parameter
Create new DMO Gargle
Dispose code
DMO I3DL2Reverb Effect
DMO I3DL2Reverb Params
DSFX_I3DL2REVERB_ROOM_MIN
DSFX_I3DL2REVERB_ROOM_MAX
DSFX_I3DL2REVERB_ROOM_DEFAULT
DSFX_I3DL2REVERB_ROOMHF_MIN
DSFX_I3DL2REVERB_ROOMHF_MAX
DSFX_I3DL2REVERB_ROOMHF_DEFAULT
DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_MIN
DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_MAX
DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_DEFAULT
DSFX_I3DL2REVERB_DECAYTIME_MIN
DSFX_I3DL2REVERB_DECAYTIME_MAX
DSFX_I3DL2REVERB_DECAYTIME_DEFAULT
DSFX_I3DL2REVERB_DECAYHFRATIO_MIN
DSFX_I3DL2REVERB_DECAYHFRATIO_MAX
DSFX_I3DL2REVERB_DECAYHFRATIO_DEFAULT
DSFX_I3DL2REVERB_REFLECTIONS_MIN
DSFX_I3DL2REVERB_REFLECTIONS_MAX
DSFX_I3DL2REVERB_REFLECTIONS_DEFAULT
DSFX_I3DL2REVERB_REFLECTIONSDELAY_MIN
DSFX_I3DL2REVERB_REFLECTIONSDELAY_MAX
DSFX_I3DL2REVERB_REFLECTIONSDELAY_DEFAULT
DSFX_I3DL2REVERB_REVERB_MIN
DSFX_I3DL2REVERB_REVERB_MAX
DSFX_I3DL2REVERB_REVERB_DEFAULT
DSFX_I3DL2REVERB_REVERBDELAY_MIN
DSFX_I3DL2REVERB_REVERBDELAY_MAX
DSFX_I3DL2REVERB_REVERBDELAY_DEFAULT
DSFX_I3DL2REVERB_DIFFUSION_MIN
DSFX_I3DL2REVERB_DIFFUSION_MAX
DSFX_I3DL2REVERB_DIFFUSION_DEFAULT
DSFX_I3DL2REVERB_DENSITY_MIN
DSFX_I3DL2REVERB_DENSITY_MAX
DSFX_I3DL2REVERB_DENSITY_DEFAULT
DSFX_I3DL2REVERB_HFREFERENCE_MIN
DSFX_I3DL2REVERB_HFREFERENCE_MAX
DSFX_I3DL2REVERB_HFREFERENCE_DEFAULT
DSFX_I3DL2REVERB_QUALITY_MIN
DSFX_I3DL2REVERB_QUALITY_MAX
DSFX_I3DL2REVERB_QUALITY_DEFAULT
Attenuation of the room effect, in millibels (mB)
Attenuation of the room high-frequency effect, in mB.
Rolloff factor for the reflected signals.
Decay time, in seconds.
Ratio of the decay time at high frequencies to the decay time at low frequencies.
Attenuation of early reflections relative to lRoom, in mB.
Delay time of the first reflection relative to the direct path, in seconds.
Attenuation of late reverberation relative to lRoom, in mB.
Time limit between the early reflections and the late reverberation relative to the time of the first reflection.
Echo density in the late reverberation decay, in percent.
Modal density in the late reverberation decay, in percent.
Reference high frequency, in hertz.
the quality of the environmental reverberation effect. Higher values produce better quality at the expense of processing time.
Sets standard reverberation parameters of a buffer.
I3DL2EnvironmentPreset
retrieves an identifier for standard reverberation parameters of a buffer.
I3DL2EnvironmentPreset
Media Object
Media Object InPlace
Effect Parameter
Create new DMO I3DL2Reverb
Dispose code
DMO Parametric Equalizer Effect
DMO ParamEq Params
DSFXPARAMEQ_CENTER_MIN
DSFXPARAMEQ_CENTER_MAX
DSFXPARAMEQ_CENTER_DEFAULT
DSFXPARAMEQ_BANDWIDTH_MIN
DSFXPARAMEQ_BANDWIDTH_MAX
DSFXPARAMEQ_BANDWIDTH_DEFAULT
DSFXPARAMEQ_GAIN_MIN
DSFXPARAMEQ_GAIN_MAX
DSFXPARAMEQ_GAIN_DEFAULT
Center frequency, in hertz
Bandwidth, in semitones.
Gain
Media Object
Media Object InPlace
Effect Parameter
Create new DMO ParamEq
Dispose code
DMO Reverb Effect
DMO Reverb Params
DSFX_WAVESREVERB_INGAIN_MIN
DSFX_WAVESREVERB_INGAIN_MAX
DSFX_WAVESREVERB_INGAIN_DEFAULT
DSFX_WAVESREVERB_REVERBMIX_MIN
DSFX_WAVESREVERB_REVERBMIX_MAX
DSFX_WAVESREVERB_REVERBMIX_DEFAULT
DSFX_WAVESREVERB_REVERBTIME_MIN
DSFX_WAVESREVERB_REVERBTIME_MAX
DSFX_WAVESREVERB_REVERBTIME_DEFAULT
DSFX_WAVESREVERB_HIGHFREQRTRATIO_MIN
DSFX_WAVESREVERB_HIGHFREQRTRATIO_MAX
DSFX_WAVESREVERB_HIGHFREQRTRATIO_DEFAULT
Input gain of signal, in decibels (dB).
Reverb mix, in dB.
Reverb time, in milliseconds.
High-frequency reverb time ratio.
Media Object
Media Object InPlace
Effect Parameter
Create new DMO WavesReverb
Dispose code
DSFXECHO_PANDELAY
DSFXECHO_PANDELAY_MIN
DSFXECHO_PANDELAY_MAX
Flanger Phase
DSFXFLANGER_PHASE_NEG_180
DSFXFLANGER_PHASE_NEG_90
DSFXFLANGER_PHASE_ZERO
DSFXFLANGER_PHASE_90
DSFXFLANGER_PHASE_180
Flanger Wave Form
DSFXFLANGER_WAVE_TRIANGLE
DSFXFLANGER_WAVE_SIN
Gargle Wave Shape
DSFXGARGLE_WAVE_TRIANGLE
DSFXGARGLE_WAVE_SQUARE
I3DL2 Reverberation Presets
DSFX_I3DL2_ENVIRONMENT_PRESET_DEFAULT
DSFX_I3DL2_ENVIRONMENT_PRESET_GENERIC
DSFX_I3DL2_ENVIRONMENT_PRESET_PADDEDCELL
DSFX_I3DL2_ENVIRONMENT_PRESET_ROOM
DSFX_I3DL2_ENVIRONMENT_PRESET_BATHROOM
DSFX_I3DL2_ENVIRONMENT_PRESET_LIVINGROOM
DSFX_I3DL2_ENVIRONMENT_PRESET_STONEROOM
DSFX_I3DL2_ENVIRONMENT_PRESET_AUDITORIUM
DSFX_I3DL2_ENVIRONMENT_PRESET_CONCERTHALL
DSFX_I3DL2_ENVIRONMENT_PRESET_CAVE
DSFX_I3DL2_ENVIRONMENT_PRESET_ARENA
DSFX_I3DL2_ENVIRONMENT_PRESET_HANGAR
DSFX_I3DL2_ENVIRONMENT_PRESET_CARPETEDHALLWAY
DSFX_I3DL2_ENVIRONMENT_PRESET_HALLWAY
DSFX_I3DL2_ENVIRONMENT_PRESET_STONECORRIDOR
DSFX_I3DL2_ENVIRONMENT_PRESET_ALLEY
DSFX_I3DL2_ENVIRONMENT_PRESET_FOREST
DSFX_I3DL2_ENVIRONMENT_PRESET_CITY
DSFX_I3DL2_ENVIRONMENT_PRESET_MOUNTAINS
DSFX_I3DL2_ENVIRONMENT_PRESET_QUARRY
DSFX_I3DL2_ENVIRONMENT_PRESET_PLAIN
DSFX_I3DL2_ENVIRONMENT_PRESET_PARKINGLOT
DSFX_I3DL2_ENVIRONMENT_PRESET_SEWERPIPE
DSFX_I3DL2_ENVIRONMENT_PRESET_UNDERWATER
DSFX_I3DL2_ENVIRONMENT_PRESET_SMALLROOM
DSFX_I3DL2_ENVIRONMENT_PRESET_MEDIUMROOM
DSFX_I3DL2_ENVIRONMENT_PRESET_LARGEROOM
DSFX_I3DL2_ENVIRONMENT_PRESET_MEDIUMHALL
DSFX_I3DL2_ENVIRONMENT_PRESET_LARGEHALL
DSFX_I3DL2_ENVIRONMENT_PRESET_PLATE
Interface of DMO Effectors
Parameters of the effect to be used
Media Object
Media Object InPlace
Effect Parameter
IMediaBuffer Interface
Set Length
Length
HRESULT
Get Max Length
Max Length
HRESULT
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
defined in mediaobj.h
defined in mediaobj.h
defined in Medparam.h
Windows Media Resampler Props
wmcodecdsp.h
Range is 1 to 60
Specifies the channel matrix.
Attempting to implement the COM IMediaBuffer interface as a .NET object
Not sure what will happen when I pass this to an unmanaged object
Creates a new Media Buffer
Maximum length in bytes
Dispose and free memory for buffer
Finalizer
Set length of valid data in the buffer
length
HRESULT
Gets the maximum length of the buffer
Max length (output parameter)
HRESULT
Gets buffer and / or length
Pointer to variable into which buffer pointer should be written
Pointer to variable into which valid data length should be written
HRESULT
Length of data in the media buffer
Loads data into this buffer
Data to load
Number of bytes to load
Retrieves the data in the output buffer
buffer to retrieve into
offset within that buffer
Media Object
Creates a new Media Object
Media Object COM interface
Number of input streams
Number of output streams
Gets the input media type for the specified input stream
Input stream index
Input type index
DMO Media Type or null if there are no more input types
Gets the DMO Media Output type
The output stream
Output type index
DMO Media Type or null if no more available
retrieves the media type that was set for an output stream, if any
Output stream index
DMO Media Type or null if no more available
Enumerates the supported input types
Input stream index
Enumeration of input types
Enumerates the output types
Output stream index
Enumeration of supported output types
Querys whether a specified input type is supported
Input stream index
Media type to check
true if supports
Sets the input type helper method
Input stream index
Media type
Flags (can be used to test rather than set)
Sets the input type
Input stream index
Media Type
Sets the input type to the specified Wave format
Input stream index
Wave format
Requests whether the specified Wave format is supported as an input
Input stream index
Wave format
true if supported
Helper function to make a DMO Media Type to represent a particular WaveFormat
Checks if a specified output type is supported
n.b. you may need to set the input type first
Output stream index
Media type
True if supported
Tests if the specified Wave Format is supported for output
n.b. may need to set the input type first
Output stream index
Wave format
True if supported
Helper method to call SetOutputType
Sets the output type
n.b. may need to set the input type first
Output stream index
Media type to set
Set output type to the specified wave format
n.b. may need to set input type first
Output stream index
Wave format
Get Input Size Info
Input Stream Index
Input Size Info
Get Output Size Info
Output Stream Index
Output Size Info
Process Input
Input Stream index
Media Buffer
Flags
Timestamp
Duration
Process Output
Flags
Output buffer count
Output buffers
Gives the DMO a chance to allocate any resources needed for streaming
Tells the DMO to free any resources needed for streaming
Gets maximum input latency
input stream index
Maximum input latency as a ref-time
Flushes all buffered data
Report a discontinuity on the specified input stream
Input Stream index
Is this input stream accepting data?
Input Stream index
true if accepting data
Experimental code, not currently being called
Not sure if it is necessary anyway
Media Object InPlace
Creates a new Media Object InPlace
Media Object InPlace COM Interface
Processes a block of data.
The application supplies a pointer to a block of input data. The DMO processes the data in place.
Size of the data, in bytes.
offset into buffer
In/Out Data Buffer
Start time of the data.
DmoInplaceProcessFlags
Return value when Process is executed with IMediaObjectInPlace
Creates a copy of the DMO in its current state.
Copyed MediaObjectInPlace
Retrieves the latency introduced by this DMO.
The latency, in 100-nanosecond units
Get Media Object
Media Object
Dispose code
Media Object Size Info
Minimum Buffer Size, in bytes
Max Lookahead
Alignment
Media Object Size Info
ToString
MP_PARAMINFO
MP_TYPE
MPT_INT
MPT_FLOAT
MPT_BOOL
MPT_ENUM
MPT_MAX
MP_CURVE_TYPE
uuids.h, ksuuids.h
From wmcodecsdp.h
Implements:
- IMediaObject
- IMFTransform (Media foundation - we will leave this for now as there is loads of MF stuff)
- IPropertyStore
- IWMResamplerProps
Can resample PCM or IEEE
DMO Resampler
Creates a new Resampler based on the DMO Resampler
Media Object
Dispose code - experimental at the moment
Was added trying to track down why Resampler crashes NUnit
This code not currently being called by ResamplerDmoStream
implements IMediaObject (DirectX Media Object)
implements IMFTransform (Media Foundation Transform)
On Windows XP, it is always an MM (if present at all)
Windows Media MP3 Decoder (as a DMO)
WORK IN PROGRESS - DO NOT USE!
Creates a new Resampler based on the DMO Resampler
Media Object
Dispose code - experimental at the moment
Was added trying to track down why Resampler crashes NUnit
This code not currently being called by ResamplerDmoStream
Audio Subtype GUIDs
http://msdn.microsoft.com/en-us/library/windows/desktop/aa372553%28v=vs.85%29.aspx
Advanced Audio Coding (AAC).
Not used
Dolby AC-3 audio over Sony/Philips Digital Interface (S/PDIF).
Encrypted audio data used with secure audio path.
Digital Theater Systems (DTS) audio.
Uncompressed IEEE floating-point audio.
MPEG Audio Layer-3 (MP3).
MPEG-1 audio payload.
Windows Media Audio 9 Voice codec.
Uncompressed PCM audio.
Windows Media Audio 9 Professional codec over S/PDIF.
Windows Media Audio 9 Lossless codec or Windows Media Audio 9.1 codec.
Windows Media Audio 8 codec, Windows Media Audio 9 codec, or Windows Media Audio 9.1 codec.
Windows Media Audio 9 Professional codec or Windows Media Audio 9.1 Professional codec.
Dolby Digital (AC-3).
Free Lossless Audio Codec (Supported in Windows 10 and later.)
Apple Lossless Audio Codec (Supported in Windows 10 and later.)
MPEG-4 and AAC Audio Types
http://msdn.microsoft.com/en-us/library/windows/desktop/dd317599(v=vs.85).aspx
Reference : wmcodecdsp.h
Dolby Audio Types
http://msdn.microsoft.com/en-us/library/windows/desktop/dd317599(v=vs.85).aspx
Reference : wmcodecdsp.h
Dolby Audio Types
http://msdn.microsoft.com/en-us/library/windows/desktop/dd317599(v=vs.85).aspx
Reference : wmcodecdsp.h
μ-law coding
http://msdn.microsoft.com/en-us/library/windows/desktop/dd390971(v=vs.85).aspx
Reference : Ksmedia.h
Adaptive delta pulse code modulation (ADPCM)
http://msdn.microsoft.com/en-us/library/windows/desktop/dd390971(v=vs.85).aspx
Reference : Ksmedia.h
Dolby Digital Plus formatted for HDMI output.
http://msdn.microsoft.com/en-us/library/windows/hardware/ff538392(v=vs.85).aspx
Reference : internet
MSAudio1 - unknown meaning
Reference : wmcodecdsp.h
IMA ADPCM ACM Wrapper
WMSP2 - unknown meaning
Reference: wmsdkidl.h
IMFActivate, defined in mfobjects.h
Retrieves the value associated with a key.
Retrieves the data type of the value associated with a key.
Queries whether a stored attribute value equals a specified PROPVARIANT.
Compares the attributes on this object with the attributes on another object.
Retrieves a UINT32 value associated with a key.
Retrieves a UINT64 value associated with a key.
Retrieves a double value associated with a key.
Retrieves a GUID value associated with a key.
Retrieves the length of a string value associated with a key.
Retrieves a wide-character string associated with a key.
Retrieves a wide-character string associated with a key. This method allocates the memory for the string.
Retrieves the length of a byte array associated with a key.
Retrieves a byte array associated with a key.
Retrieves a byte array associated with a key. This method allocates the memory for the array.
Retrieves an interface pointer associated with a key.
Associates an attribute value with a key.
Removes a key/value pair from the object's attribute list.
Removes all key/value pairs from the object's attribute list.
Associates a UINT32 value with a key.
Associates a UINT64 value with a key.
Associates a double value with a key.
Associates a GUID value with a key.
Associates a wide-character string with a key.
Associates a byte array with a key.
Associates an IUnknown pointer with a key.
Locks the attribute store so that no other thread can access it.
Unlocks the attribute store.
Retrieves the number of attributes that are set on this object.
Retrieves an attribute at the specified index.
Copies all of the attributes from this object into another attribute store.
Creates the object associated with this activation object.
Shuts down the created object.
Detaches the created object from the activation object.
Provides a generic way to store key/value pairs on an object.
http://msdn.microsoft.com/en-gb/library/windows/desktop/ms704598%28v=vs.85%29.aspx
Retrieves the value associated with a key.
Retrieves the data type of the value associated with a key.
Queries whether a stored attribute value equals a specified PROPVARIANT.
Compares the attributes on this object with the attributes on another object.
Retrieves a UINT32 value associated with a key.
Retrieves a UINT64 value associated with a key.
Retrieves a double value associated with a key.
Retrieves a GUID value associated with a key.
Retrieves the length of a string value associated with a key.
Retrieves a wide-character string associated with a key.
Retrieves a wide-character string associated with a key. This method allocates the memory for the string.
Retrieves the length of a byte array associated with a key.
Retrieves a byte array associated with a key.
Retrieves a byte array associated with a key. This method allocates the memory for the array.
Retrieves an interface pointer associated with a key.
Associates an attribute value with a key.
Removes a key/value pair from the object's attribute list.
Removes all key/value pairs from the object's attribute list.
Associates a UINT32 value with a key.
Associates a UINT64 value with a key.
Associates a double value with a key.
Associates a GUID value with a key.
Associates a wide-character string with a key.
Associates a byte array with a key.
Associates an IUnknown pointer with a key.
Locks the attribute store so that no other thread can access it.
Unlocks the attribute store.
Retrieves the number of attributes that are set on this object.
Retrieves an attribute at the specified index.
Copies all of the attributes from this object into another attribute store.
IMFByteStream
http://msdn.microsoft.com/en-gb/library/windows/desktop/ms698720%28v=vs.85%29.aspx
Retrieves the characteristics of the byte stream.
virtual HRESULT STDMETHODCALLTYPE GetCapabilities(/*[out]*/ __RPC__out DWORD *pdwCapabilities) = 0;
Retrieves the length of the stream.
virtual HRESULT STDMETHODCALLTYPE GetLength(/*[out]*/ __RPC__out QWORD *pqwLength) = 0;
Sets the length of the stream.
virtual HRESULT STDMETHODCALLTYPE SetLength(/*[in]*/ QWORD qwLength) = 0;
Retrieves the current read or write position in the stream.
virtual HRESULT STDMETHODCALLTYPE GetCurrentPosition(/*[out]*/ __RPC__out QWORD *pqwPosition) = 0;
Sets the current read or write position.
virtual HRESULT STDMETHODCALLTYPE SetCurrentPosition(/*[in]*/ QWORD qwPosition) = 0;
Queries whether the current position has reached the end of the stream.
virtual HRESULT STDMETHODCALLTYPE IsEndOfStream(/*[out]*/ __RPC__out BOOL *pfEndOfStream) = 0;
Reads data from the stream.
virtual HRESULT STDMETHODCALLTYPE Read(/*[size_is][out]*/ __RPC__out_ecount_full(cb) BYTE *pb, /*[in]*/ ULONG cb, /*[out]*/ __RPC__out ULONG *pcbRead) = 0;
Begins an asynchronous read operation from the stream.
virtual /*[local]*/ HRESULT STDMETHODCALLTYPE BeginRead(/*[out]*/ _Out_writes_bytes_(cb) BYTE *pb, /*[in]*/ ULONG cb, /*[in]*/ IMFAsyncCallback *pCallback, /*[in]*/ IUnknown *punkState) = 0;
Completes an asynchronous read operation.
virtual /*[local]*/ HRESULT STDMETHODCALLTYPE EndRead(/*[in]*/ IMFAsyncResult *pResult, /*[out]*/ _Out_ ULONG *pcbRead) = 0;
Writes data to the stream.
virtual HRESULT STDMETHODCALLTYPE Write(/*[size_is][in]*/ __RPC__in_ecount_full(cb) const BYTE *pb, /*[in]*/ ULONG cb, /*[out]*/ __RPC__out ULONG *pcbWritten) = 0;
Begins an asynchronous write operation to the stream.
virtual /*[local]*/ HRESULT STDMETHODCALLTYPE BeginWrite(/*[in]*/ _In_reads_bytes_(cb) const BYTE *pb, /*[in]*/ ULONG cb, /*[in]*/ IMFAsyncCallback *pCallback, /*[in]*/ IUnknown *punkState) = 0;
Completes an asynchronous write operation.
virtual /*[local]*/ HRESULT STDMETHODCALLTYPE EndWrite(/*[in]*/ IMFAsyncResult *pResult, /*[out]*/ _Out_ ULONG *pcbWritten) = 0;
Moves the current position in the stream by a specified offset.
virtual HRESULT STDMETHODCALLTYPE Seek(/*[in]*/ MFBYTESTREAM_SEEK_ORIGIN SeekOrigin, /*[in]*/ LONGLONG llSeekOffset, /*[in]*/ DWORD dwSeekFlags, /*[out]*/ __RPC__out QWORD *pqwCurrentPosition) = 0;
Clears any internal buffers used by the stream.
virtual HRESULT STDMETHODCALLTYPE Flush( void) = 0;
Closes the stream and releases any resources associated with the stream.
virtual HRESULT STDMETHODCALLTYPE Close( void) = 0;
Represents a generic collection of IUnknown pointers.
Retrieves the number of objects in the collection.
Retrieves an object in the collection.
Adds an object to the collection.
Removes an object from the collection.
Removes an object from the collection.
Removes all items from the collection.
IMFMediaBuffer
http://msdn.microsoft.com/en-gb/library/windows/desktop/ms696261%28v=vs.85%29.aspx
Gives the caller access to the memory in the buffer.
Unlocks a buffer that was previously locked.
Retrieves the length of the valid data in the buffer.
Sets the length of the valid data in the buffer.
Retrieves the allocated size of the buffer.
IMFMediaEvent - Represents an event generated by a Media Foundation object. Use this interface to get information about the event.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms702249%28v=vs.85%29.aspx
Mfobjects.h
Retrieves the value associated with a key.
Retrieves the data type of the value associated with a key.
Queries whether a stored attribute value equals a specified PROPVARIANT.
Compares the attributes on this object with the attributes on another object.
Retrieves a UINT32 value associated with a key.
Retrieves a UINT64 value associated with a key.
Retrieves a double value associated with a key.
Retrieves a GUID value associated with a key.
Retrieves the length of a string value associated with a key.
Retrieves a wide-character string associated with a key.
Retrieves a wide-character string associated with a key. This method allocates the memory for the string.
Retrieves the length of a byte array associated with a key.
Retrieves a byte array associated with a key.
Retrieves a byte array associated with a key. This method allocates the memory for the array.
Retrieves an interface pointer associated with a key.
Associates an attribute value with a key.
Removes a key/value pair from the object's attribute list.
Removes all key/value pairs from the object's attribute list.
Associates a UINT32 value with a key.
Associates a UINT64 value with a key.
Associates a double value with a key.
Associates a GUID value with a key.
Associates a wide-character string with a key.
Associates a byte array with a key.
Associates an IUnknown pointer with a key.
Locks the attribute store so that no other thread can access it.
Unlocks the attribute store.
Retrieves the number of attributes that are set on this object.
Retrieves an attribute at the specified index.
Copies all of the attributes from this object into another attribute store.
Retrieves the event type.
virtual HRESULT STDMETHODCALLTYPE GetType(
/* [out] */ __RPC__out MediaEventType *pmet) = 0;
Retrieves the extended type of the event.
virtual HRESULT STDMETHODCALLTYPE GetExtendedType(
/* [out] */ __RPC__out GUID *pguidExtendedType) = 0;
Retrieves an HRESULT that specifies the event status.
virtual HRESULT STDMETHODCALLTYPE GetStatus(
/* [out] */ __RPC__out HRESULT *phrStatus) = 0;
Retrieves the value associated with the event, if any.
virtual HRESULT STDMETHODCALLTYPE GetValue(
/* [out] */ __RPC__out PROPVARIANT *pvValue) = 0;
Represents a description of a media format.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms704850%28v=vs.85%29.aspx
Retrieves the value associated with a key.
Retrieves the data type of the value associated with a key.
Queries whether a stored attribute value equals a specified PROPVARIANT.
Compares the attributes on this object with the attributes on another object.
Retrieves a UINT32 value associated with a key.
Retrieves a UINT64 value associated with a key.
Retrieves a double value associated with a key.
Retrieves a GUID value associated with a key.
Retrieves the length of a string value associated with a key.
Retrieves a wide-character string associated with a key.
Retrieves a wide-character string associated with a key. This method allocates the memory for the string.
Retrieves the length of a byte array associated with a key.
Retrieves a byte array associated with a key.
Retrieves a byte array associated with a key. This method allocates the memory for the array.
Retrieves an interface pointer associated with a key.
Associates an attribute value with a key.
Removes a key/value pair from the object's attribute list.
Removes all key/value pairs from the object's attribute list.
Associates a UINT32 value with a key.
Associates a UINT64 value with a key.
Associates a double value with a key.
Associates a GUID value with a key.
Associates a wide-character string with a key.
Associates a byte array with a key.
Associates an IUnknown pointer with a key.
Locks the attribute store so that no other thread can access it.
Unlocks the attribute store.
Retrieves the number of attributes that are set on this object.
Retrieves an attribute at the specified index.
Copies all of the attributes from this object into another attribute store.
Retrieves the major type of the format.
Queries whether the media type is a compressed format.
Compares two media types and determines whether they are identical.
Retrieves an alternative representation of the media type.
Frees memory that was allocated by the GetRepresentation method.
Creates an instance of either the sink writer or the source reader.
Creates an instance of the sink writer or source reader, given a URL.
Creates an instance of the sink writer or source reader, given an IUnknown pointer.
CLSID_MFReadWriteClassFactory
http://msdn.microsoft.com/en-gb/library/windows/desktop/ms702192%28v=vs.85%29.aspx
Retrieves the value associated with a key.
Retrieves the data type of the value associated with a key.
Queries whether a stored attribute value equals a specified PROPVARIANT.
Compares the attributes on this object with the attributes on another object.
Retrieves a UINT32 value associated with a key.
Retrieves a UINT64 value associated with a key.
Retrieves a double value associated with a key.
Retrieves a GUID value associated with a key.
Retrieves the length of a string value associated with a key.
Retrieves a wide-character string associated with a key.
Retrieves a wide-character string associated with a key. This method allocates the memory for the string.
Retrieves the length of a byte array associated with a key.
Retrieves a byte array associated with a key.
Retrieves a byte array associated with a key. This method allocates the memory for the array.
Retrieves an interface pointer associated with a key.
Associates an attribute value with a key.
Removes a key/value pair from the object's attribute list.
Removes all key/value pairs from the object's attribute list.
Associates a UINT32 value with a key.
Associates a UINT64 value with a key.
Associates a double value with a key.
Associates a GUID value with a key.
Associates a wide-character string with a key.
Associates a byte array with a key.
Associates an IUnknown pointer with a key.
Locks the attribute store so that no other thread can access it.
Unlocks the attribute store.
Retrieves the number of attributes that are set on this object.
Retrieves an attribute at the specified index.
Copies all of the attributes from this object into another attribute store.
Retrieves flags associated with the sample.
Sets flags associated with the sample.
Retrieves the presentation time of the sample.
Sets the presentation time of the sample.
Retrieves the duration of the sample.
Sets the duration of the sample.
Retrieves the number of buffers in the sample.
Retrieves a buffer from the sample.
Converts a sample with multiple buffers into a sample with a single buffer.
Adds a buffer to the end of the list of buffers in the sample.
Removes a buffer at a specified index from the sample.
Removes all buffers from the sample.
Retrieves the total length of the valid data in all of the buffers in the sample.
Copies the sample data to a buffer.
Implemented by the Microsoft Media Foundation sink writer object.
Adds a stream to the sink writer.
Sets the input format for a stream on the sink writer.
Initializes the sink writer for writing.
Delivers a sample to the sink writer.
Indicates a gap in an input stream.
Places a marker in the specified stream.
Notifies the media sink that a stream has reached the end of a segment.
Flushes one or more streams.
(Finalize) Completes all writing operations on the sink writer.
Queries the underlying media sink or encoder for an interface.
Gets statistics about the performance of the sink writer.
IMFSourceReader interface
http://msdn.microsoft.com/en-us/library/windows/desktop/dd374655%28v=vs.85%29.aspx
Queries whether a stream is selected.
Selects or deselects one or more streams.
Gets a format that is supported natively by the media source.
Gets the current media type for a stream.
Sets the media type for a stream.
Seeks to a new position in the media source.
Reads the next sample from the media source.
Flushes one or more streams.
Queries the underlying media source or decoder for an interface.
Gets an attribute from the underlying media source.
Contains flags that indicate the status of the IMFSourceReader::ReadSample method
http://msdn.microsoft.com/en-us/library/windows/desktop/dd375773(v=vs.85).aspx
No Error
An error occurred. If you receive this flag, do not make any further calls to IMFSourceReader methods.
The source reader reached the end of the stream.
One or more new streams were created
The native format has changed for one or more streams. The native format is the format delivered by the media source before any decoders are inserted.
The current media has type changed for one or more streams. To get the current media type, call the IMFSourceReader::GetCurrentMediaType method.
There is a gap in the stream. This flag corresponds to an MEStreamTick event from the media source.
All transforms inserted by the application have been removed for a particular stream.
IMFTransform, defined in mftransform.h
Retrieves the minimum and maximum number of input and output streams.
virtual HRESULT STDMETHODCALLTYPE GetStreamLimits(
/* [out] */ __RPC__out DWORD *pdwInputMinimum,
/* [out] */ __RPC__out DWORD *pdwInputMaximum,
/* [out] */ __RPC__out DWORD *pdwOutputMinimum,
/* [out] */ __RPC__out DWORD *pdwOutputMaximum) = 0;
Retrieves the current number of input and output streams on this MFT.
virtual HRESULT STDMETHODCALLTYPE GetStreamCount(
/* [out] */ __RPC__out DWORD *pcInputStreams,
/* [out] */ __RPC__out DWORD *pcOutputStreams) = 0;
Retrieves the stream identifiers for the input and output streams on this MFT.
virtual HRESULT STDMETHODCALLTYPE GetStreamIDs(
DWORD dwInputIDArraySize,
/* [size_is][out] */ __RPC__out_ecount_full(dwInputIDArraySize) DWORD *pdwInputIDs,
DWORD dwOutputIDArraySize,
/* [size_is][out] */ __RPC__out_ecount_full(dwOutputIDArraySize) DWORD *pdwOutputIDs) = 0;
Gets the buffer requirements and other information for an input stream on this Media Foundation transform (MFT).
virtual HRESULT STDMETHODCALLTYPE GetInputStreamInfo(
DWORD dwInputStreamID,
/* [out] */ __RPC__out MFT_INPUT_STREAM_INFO *pStreamInfo) = 0;
Gets the buffer requirements and other information for an output stream on this Media Foundation transform (MFT).
virtual HRESULT STDMETHODCALLTYPE GetOutputStreamInfo(
DWORD dwOutputStreamID,
/* [out] */ __RPC__out MFT_OUTPUT_STREAM_INFO *pStreamInfo) = 0;
Gets the global attribute store for this Media Foundation transform (MFT).
virtual HRESULT STDMETHODCALLTYPE GetAttributes(
/* [out] */ __RPC__deref_out_opt IMFAttributes **pAttributes) = 0;
Retrieves the attribute store for an input stream on this MFT.
virtual HRESULT STDMETHODCALLTYPE GetInputStreamAttributes(
DWORD dwInputStreamID,
/* [out] */ __RPC__deref_out_opt IMFAttributes **pAttributes) = 0;
Retrieves the attribute store for an output stream on this MFT.
virtual HRESULT STDMETHODCALLTYPE GetOutputStreamAttributes(
DWORD dwOutputStreamID,
/* [out] */ __RPC__deref_out_opt IMFAttributes **pAttributes) = 0;
Removes an input stream from this MFT.
virtual HRESULT STDMETHODCALLTYPE DeleteInputStream(
DWORD dwStreamID) = 0;
Adds one or more new input streams to this MFT.
virtual HRESULT STDMETHODCALLTYPE AddInputStreams(
DWORD cStreams,
/* [in] */ __RPC__in DWORD *adwStreamIDs) = 0;
Gets an available media type for an input stream on this Media Foundation transform (MFT).
virtual HRESULT STDMETHODCALLTYPE GetInputAvailableType(
DWORD dwInputStreamID,
DWORD dwTypeIndex,
/* [out] */ __RPC__deref_out_opt IMFMediaType **ppType) = 0;
Retrieves an available media type for an output stream on this MFT.
virtual HRESULT STDMETHODCALLTYPE GetOutputAvailableType(
DWORD dwOutputStreamID,
DWORD dwTypeIndex,
/* [out] */ __RPC__deref_out_opt IMFMediaType **ppType) = 0;
Sets, tests, or clears the media type for an input stream on this Media Foundation transform (MFT).
virtual HRESULT STDMETHODCALLTYPE SetInputType(
DWORD dwInputStreamID,
/* [in] */ __RPC__in_opt IMFMediaType *pType,
DWORD dwFlags) = 0;
Sets, tests, or clears the media type for an output stream on this Media Foundation transform (MFT).
virtual HRESULT STDMETHODCALLTYPE SetOutputType(
DWORD dwOutputStreamID,
/* [in] */ __RPC__in_opt IMFMediaType *pType,
DWORD dwFlags) = 0;
Gets the current media type for an input stream on this Media Foundation transform (MFT).
virtual HRESULT STDMETHODCALLTYPE GetInputCurrentType(
DWORD dwInputStreamID,
/* [out] */ __RPC__deref_out_opt IMFMediaType **ppType) = 0;
Gets the current media type for an output stream on this Media Foundation transform (MFT).
virtual HRESULT STDMETHODCALLTYPE GetOutputCurrentType(
DWORD dwOutputStreamID,
/* [out] */ __RPC__deref_out_opt IMFMediaType **ppType) = 0;
Queries whether an input stream on this Media Foundation transform (MFT) can accept more data.
virtual HRESULT STDMETHODCALLTYPE GetInputStatus(
DWORD dwInputStreamID,
/* [out] */ __RPC__out DWORD *pdwFlags) = 0;
Queries whether the Media Foundation transform (MFT) is ready to produce output data.
virtual HRESULT STDMETHODCALLTYPE GetOutputStatus(
/* [out] */ __RPC__out DWORD *pdwFlags) = 0;
Sets the range of time stamps the client needs for output.
virtual HRESULT STDMETHODCALLTYPE SetOutputBounds(
LONGLONG hnsLowerBound,
LONGLONG hnsUpperBound) = 0;
Sends an event to an input stream on this Media Foundation transform (MFT).
virtual HRESULT STDMETHODCALLTYPE ProcessEvent(
DWORD dwInputStreamID,
/* [in] */ __RPC__in_opt IMFMediaEvent *pEvent) = 0;
Sends a message to the Media Foundation transform (MFT).
virtual HRESULT STDMETHODCALLTYPE ProcessMessage(
MFT_MESSAGE_TYPE eMessage,
ULONG_PTR ulParam) = 0;
Delivers data to an input stream on this Media Foundation transform (MFT).
virtual /* [local] */ HRESULT STDMETHODCALLTYPE ProcessInput(
DWORD dwInputStreamID,
IMFSample *pSample,
DWORD dwFlags) = 0;
Generates output from the current input data.
virtual /* [local] */ HRESULT STDMETHODCALLTYPE ProcessOutput(
DWORD dwFlags,
DWORD cOutputBufferCount,
/* [size_is][out][in] */ MFT_OUTPUT_DATA_BUFFER *pOutputSamples,
/* [out] */ DWORD *pdwStatus) = 0;
See mfobjects.h
Unknown event type.
Signals a serious error.
Custom event type.
A non-fatal error occurred during streaming.
Session Unknown
Raised after the IMFMediaSession::SetTopology method completes asynchronously
Raised by the Media Session when the IMFMediaSession::ClearTopologies method completes asynchronously.
Raised when the IMFMediaSession::Start method completes asynchronously.
Raised when the IMFMediaSession::Pause method completes asynchronously.
Raised when the IMFMediaSession::Stop method completes asynchronously.
Raised when the IMFMediaSession::Close method completes asynchronously.
Raised by the Media Session when it has finished playing the last presentation in the playback queue.
Raised by the Media Session when the playback rate changes.
Raised by the Media Session when it completes a scrubbing request.
Raised by the Media Session when the session capabilities change.
Raised by the Media Session when the status of a topology changes.
Raised by the Media Session when a new presentation starts.
Raised by a media source a new presentation is ready.
License acquisition is about to begin.
License acquisition is complete.
Individualization is about to begin.
Individualization is complete.
Signals the progress of a content enabler object.
A content enabler object's action is complete.
Raised by a trusted output if an error occurs while enforcing the output policy.
Contains status information about the enforcement of an output policy.
A media source started to buffer data.
A media source stopped buffering data.
The network source started opening a URL.
The network source finished opening a URL.
Raised by a media source at the start of a reconnection attempt.
Raised by a media source at the end of a reconnection attempt.
Raised by the enhanced video renderer (EVR) when it receives a user event from the presenter.
Raised by the Media Session when the format changes on a media sink.
Source Unknown
Raised when a media source starts without seeking.
Raised by a media stream when the source starts without seeking.
Raised when a media source seeks to a new position.
Raised by a media stream after a call to IMFMediaSource::Start causes a seek in the stream.
Raised by a media source when it starts a new stream.
Raised by a media source when it restarts or seeks a stream that is already active.
Raised by a media source when the IMFMediaSource::Stop method completes asynchronously.
Raised by a media stream when the IMFMediaSource::Stop method completes asynchronously.
Raised by a media source when the IMFMediaSource::Pause method completes asynchronously.
Raised by a media stream when the IMFMediaSource::Pause method completes asynchronously.
Raised by a media source when a presentation ends.
Raised by a media stream when the stream ends.
Raised when a media stream delivers a new sample.
Signals that a media stream does not have data available at a specified time.
Raised by a media stream when it starts or stops thinning the stream.
Raised by a media stream when the media type of the stream changes.
Raised by a media source when the playback rate changes.
Raised by the sequencer source when a segment is completed and is followed by another segment.
Raised by a media source when the source's characteristics change.
Raised by a media source to request a new playback rate.
Raised by a media source when it updates its metadata.
Raised by the sequencer source when the IMFSequencerSource::UpdateTopology method completes asynchronously.
Sink Unknown
Raised by a stream sink when it completes the transition to the running state.
Raised by a stream sink when it completes the transition to the stopped state.
Raised by a stream sink when it completes the transition to the paused state.
Raised by a stream sink when the rate has changed.
Raised by a stream sink to request a new media sample from the pipeline.
Raised by a stream sink after the IMFStreamSink::PlaceMarker method is called.
Raised by a stream sink when the stream has received enough preroll data to begin rendering.
Raised by a stream sink when it completes a scrubbing request.
Raised by a stream sink when the sink's media type is no longer valid.
Raised by the stream sinks of the EVR if the video device changes.
Provides feedback about playback quality to the quality manager.
Raised when a media sink becomes invalid.
The audio session display name changed.
The volume or mute state of the audio session changed
The audio device was removed.
The Windows audio server system was shut down.
The grouping parameters changed for the audio session.
The audio session icon changed.
The default audio format for the audio device changed.
The audio session was disconnected from a Windows Terminal Services session
The audio session was preempted by an exclusive-mode connection.
Trust Unknown
The output policy for a stream changed.
Content protection message
The IMFOutputTrustAuthority::SetPolicy method completed.
DRM License Backup Completed
DRM License Backup Progress
DRM License Restore Completed
DRM License Restore Progress
DRM License Acquisition Completed
DRM Individualization Completed
DRM Individualization Progress
DRM Proximity Completed
DRM License Store Cleaned
DRM Revocation Download Completed
Transform Unknown
Sent by an asynchronous MFT to request a new input sample.
Sent by an asynchronous MFT when new output data is available from the MFT.
Sent by an asynchronous Media Foundation transform (MFT) when a drain operation is complete.
Sent by an asynchronous MFT in response to an MFT_MESSAGE_COMMAND_MARKER message.
Media Foundation attribute guids
http://msdn.microsoft.com/en-us/library/windows/desktop/ms696989%28v=vs.85%29.aspx
Specifies whether an MFT performs asynchronous processing.
Enables the use of an asynchronous MFT.
Contains flags for an MFT activation object.
Specifies the category for an MFT.
Contains the class identifier (CLSID) of an MFT.
Specifies the container type of an encoded file. The container types are supported by Media Foundation.
Contains the registered input types for a Media Foundation transform (MFT).
Contains the registered output types for a Media Foundation transform (MFT).
Contains the symbolic link for a hardware-based MFT.
Contains the display name for a hardware-based MFT.
Contains a pointer to the stream attributes of the connected stream on a hardware-based MFT.
Specifies whether a hardware-based MFT is connected to another hardware-based MFT.
Specifies the preferred output format for an encoder.
Specifies whether an MFT is registered only in the application's process.
Contains configuration properties for an encoder.
Specifies whether a hardware device source uses the system time for time stamps.
Contains an IMFFieldOfUseMFTUnlock pointer, which can be used to unlock the MFT.
Contains the merit value of a hardware codec.
Specifies whether a decoder is optimized for transcoding rather than for playback.
Contains a pointer to the proxy object for the application's presentation descriptor.
Contains a pointer to the presentation descriptor from the protected media path (PMP).
Specifies the duration of a presentation, in 100-nanosecond units.
Specifies the total size of the source file, in bytes.
Specifies the audio encoding bit rate for the presentation, in bits per second.
Specifies the video encoding bit rate for the presentation, in bits per second.
Specifies the MIME type of the content.
Specifies when a presentation was last modified.
The identifier of the playlist element in the presentation.
Contains the preferred RFC 1766 language of the media source.
The time at which the presentation must begin, relative to the start of the media source.
Specifies whether the audio streams in the presentation have a variable bit rate.
Media type Major Type
Media Type subtype
Audio block alignment
Audio average bytes per second
Audio number of channels
Audio samples per second
Audio bits per sample
Enables the source reader or sink writer to use hardware-based Media Foundation transforms (MFTs).
Specifies whether the sink writer limits the rate of incoming data.
Contains additional format data for a media type.
Specifies for a media type whether each sample is independent of the other samples in the stream.
Specifies for a media type whether the samples have a fixed size.
Contains a DirectShow format GUID for a media type.
Specifies the preferred legacy format structure to use when converting an audio media type.
Specifies for a media type whether the media data is compressed.
Approximate data rate of the video stream, in bits per second, for a video media type.
Specifies the payload type of an Advanced Audio Coding (AAC) stream.
0 - The stream contains raw_data_block elements only
1 - Audio Data Transport Stream (ADTS). The stream contains an adts_sequence, as defined by MPEG-2.
2 - Audio Data Interchange Format (ADIF). The stream contains an adif_sequence, as defined by MPEG-2.
3 - The stream contains an MPEG-4 audio transport stream with a synchronization layer (LOAS) and a multiplex layer (LATM).
Specifies the audio profile and level of an Advanced Audio Coding (AAC) stream, as defined by ISO/IEC 14496-3.
Media Foundation Errors
RANGES
14000 - 14999 = General Media Foundation errors
15000 - 15999 = ASF parsing errors
16000 - 16999 = Media Source errors
17000 - 17999 = MEDIAFOUNDATION Network Error Events
18000 - 18999 = MEDIAFOUNDATION WMContainer Error Events
19000 - 19999 = MEDIAFOUNDATION Media Sink Error Events
20000 - 20999 = Renderer errors
21000 - 21999 = Topology Errors
25000 - 25999 = Timeline Errors
26000 - 26999 = Unused
28000 - 28999 = Transform errors
29000 - 29999 = Content Protection errors
40000 - 40999 = Clock errors
41000 - 41999 = MF Quality Management Errors
42000 - 42999 = MF Transcode API Errors
MessageId: MF_E_PLATFORM_NOT_INITIALIZED
MessageText:
Platform not initialized. Please call MFStartup().%0
MessageId: MF_E_BUFFERTOOSMALL
MessageText:
The buffer was too small to carry out the requested action.%0
MessageId: MF_E_INVALIDREQUEST
MessageText:
The request is invalid in the current state.%0
MessageId: MF_E_INVALIDSTREAMNUMBER
MessageText:
The stream number provided was invalid.%0
MessageId: MF_E_INVALIDMEDIATYPE
MessageText:
The data specified for the media type is invalid, inconsistent, or not supported by this object.%0
MessageId: MF_E_NOTACCEPTING
MessageText:
The callee is currently not accepting further input.%0
MessageId: MF_E_NOT_INITIALIZED
MessageText:
This object needs to be initialized before the requested operation can be carried out.%0
MessageId: MF_E_UNSUPPORTED_REPRESENTATION
MessageText:
The requested representation is not supported by this object.%0
MessageId: MF_E_NO_MORE_TYPES
MessageText:
An object ran out of media types to suggest therefore the requested chain of streaming objects cannot be completed.%0
MessageId: MF_E_UNSUPPORTED_SERVICE
MessageText:
The object does not support the specified service.%0
MessageId: MF_E_UNEXPECTED
MessageText:
An unexpected error has occurred in the operation requested.%0
MessageId: MF_E_INVALIDNAME
MessageText:
Invalid name.%0
MessageId: MF_E_INVALIDTYPE
MessageText:
Invalid type.%0
MessageId: MF_E_INVALID_FILE_FORMAT
MessageText:
The file does not conform to the relevant file format specification.
MessageId: MF_E_INVALIDINDEX
MessageText:
Invalid index.%0
MessageId: MF_E_INVALID_TIMESTAMP
MessageText:
An invalid timestamp was given.%0
MessageId: MF_E_UNSUPPORTED_SCHEME
MessageText:
The scheme of the given URL is unsupported.%0
MessageId: MF_E_UNSUPPORTED_BYTESTREAM_TYPE
MessageText:
The byte stream type of the given URL is unsupported.%0
MessageId: MF_E_UNSUPPORTED_TIME_FORMAT
MessageText:
The given time format is unsupported.%0
MessageId: MF_E_NO_SAMPLE_TIMESTAMP
MessageText:
The Media Sample does not have a timestamp.%0
MessageId: MF_E_NO_SAMPLE_DURATION
MessageText:
The Media Sample does not have a duration.%0
MessageId: MF_E_INVALID_STREAM_DATA
MessageText:
The request failed because the data in the stream is corrupt.%0\n.
MessageId: MF_E_RT_UNAVAILABLE
MessageText:
Real time services are not available.%0
MessageId: MF_E_UNSUPPORTED_RATE
MessageText:
The specified rate is not supported.%0
MessageId: MF_E_THINNING_UNSUPPORTED
MessageText:
This component does not support stream-thinning.%0
MessageId: MF_E_REVERSE_UNSUPPORTED
MessageText:
The call failed because no reverse playback rates are available.%0
MessageId: MF_E_UNSUPPORTED_RATE_TRANSITION
MessageText:
The requested rate transition cannot occur in the current state.%0
MessageId: MF_E_RATE_CHANGE_PREEMPTED
MessageText:
The requested rate change has been pre-empted and will not occur.%0
MessageId: MF_E_NOT_FOUND
MessageText:
The specified object or value does not exist.%0
MessageId: MF_E_NOT_AVAILABLE
MessageText:
The requested value is not available.%0
MessageId: MF_E_NO_CLOCK
MessageText:
The specified operation requires a clock and no clock is available.%0
MessageId: MF_S_MULTIPLE_BEGIN
MessageText:
This callback and state had already been passed in to this event generator earlier.%0
MessageId: MF_E_MULTIPLE_BEGIN
MessageText:
This callback has already been passed in to this event generator.%0
MessageId: MF_E_MULTIPLE_SUBSCRIBERS
MessageText:
Some component is already listening to events on this event generator.%0
MessageId: MF_E_TIMER_ORPHANED
MessageText:
This timer was orphaned before its callback time arrived.%0
MessageId: MF_E_STATE_TRANSITION_PENDING
MessageText:
A state transition is already pending.%0
MessageId: MF_E_UNSUPPORTED_STATE_TRANSITION
MessageText:
The requested state transition is unsupported.%0
MessageId: MF_E_UNRECOVERABLE_ERROR_OCCURRED
MessageText:
An unrecoverable error has occurred.%0
MessageId: MF_E_SAMPLE_HAS_TOO_MANY_BUFFERS
MessageText:
The provided sample has too many buffers.%0
MessageId: MF_E_SAMPLE_NOT_WRITABLE
MessageText:
The provided sample is not writable.%0
MessageId: MF_E_INVALID_KEY
MessageText:
The specified key is not valid.
MessageId: MF_E_BAD_STARTUP_VERSION
MessageText:
You are calling MFStartup with the wrong MF_VERSION. Mismatched bits?
MessageId: MF_E_UNSUPPORTED_CAPTION
MessageText:
The caption of the given URL is unsupported.%0
MessageId: MF_E_INVALID_POSITION
MessageText:
The operation on the current offset is not permitted.%0
MessageId: MF_E_ATTRIBUTENOTFOUND
MessageText:
The requested attribute was not found.%0
MessageId: MF_E_PROPERTY_TYPE_NOT_ALLOWED
MessageText:
The specified property type is not allowed in this context.%0
MessageId: MF_E_PROPERTY_TYPE_NOT_SUPPORTED
MessageText:
The specified property type is not supported.%0
MessageId: MF_E_PROPERTY_EMPTY
MessageText:
The specified property is empty.%0
MessageId: MF_E_PROPERTY_NOT_EMPTY
MessageText:
The specified property is not empty.%0
MessageId: MF_E_PROPERTY_VECTOR_NOT_ALLOWED
MessageText:
The vector property specified is not allowed in this context.%0
MessageId: MF_E_PROPERTY_VECTOR_REQUIRED
MessageText:
A vector property is required in this context.%0
MessageId: MF_E_OPERATION_CANCELLED
MessageText:
The operation is cancelled.%0
MessageId: MF_E_BYTESTREAM_NOT_SEEKABLE
MessageText:
The provided bytestream was expected to be seekable and it is not.%0
MessageId: MF_E_DISABLED_IN_SAFEMODE
MessageText:
The Media Foundation platform is disabled when the system is running in Safe Mode.%0
MessageId: MF_E_CANNOT_PARSE_BYTESTREAM
MessageText:
The Media Source could not parse the byte stream.%0
MessageId: MF_E_SOURCERESOLVER_MUTUALLY_EXCLUSIVE_FLAGS
MessageText:
Mutually exclusive flags have been specified to source resolver. This flag combination is invalid.%0
MessageId: MF_E_MEDIAPROC_WRONGSTATE
MessageText:
MediaProc is in the wrong state%0
MessageId: MF_E_RT_THROUGHPUT_NOT_AVAILABLE
MessageText:
Real time I/O service can not provide requested throughput.%0
MessageId: MF_E_RT_TOO_MANY_CLASSES
MessageText:
The workqueue cannot be registered with more classes.%0
MessageId: MF_E_RT_WOULDBLOCK
MessageText:
This operation cannot succeed because another thread owns this object.%0
MessageId: MF_E_NO_BITPUMP
MessageText:
Internal. Bitpump not found.%0
MessageId: MF_E_RT_OUTOFMEMORY
MessageText:
No more RT memory available.%0
MessageId: MF_E_RT_WORKQUEUE_CLASS_NOT_SPECIFIED
MessageText:
An MMCSS class has not been set for this work queue.%0
MessageId: MF_E_INSUFFICIENT_BUFFER
MessageText:
Insufficient memory for response.%0
MessageId: MF_E_CANNOT_CREATE_SINK
MessageText:
Activate failed to create mediasink. Call OutputNode::GetUINT32(MF_TOPONODE_MAJORTYPE) for more information. %0
MessageId: MF_E_BYTESTREAM_UNKNOWN_LENGTH
MessageText:
The length of the provided bytestream is unknown.%0
MessageId: MF_E_SESSION_PAUSEWHILESTOPPED
MessageText:
The media session cannot pause from a stopped state.%0
MessageId: MF_S_ACTIVATE_REPLACED
MessageText:
The activate could not be created in the remote process for some reason it was replaced with empty one.%0
MessageId: MF_E_FORMAT_CHANGE_NOT_SUPPORTED
MessageText:
The data specified for the media type is supported, but would require a format change, which is not supported by this object.%0
MessageId: MF_E_INVALID_WORKQUEUE
MessageText:
The operation failed because an invalid combination of workqueue ID and flags was specified.%0
MessageId: MF_E_DRM_UNSUPPORTED
MessageText:
No DRM support is available.%0
MessageId: MF_E_UNAUTHORIZED
MessageText:
This operation is not authorized.%0
MessageId: MF_E_OUT_OF_RANGE
MessageText:
The value is not in the specified or valid range.%0
MessageId: MF_E_INVALID_CODEC_MERIT
MessageText:
The registered codec merit is not valid.%0
MessageId: MF_E_HW_MFT_FAILED_START_STREAMING
MessageText:
Hardware MFT failed to start streaming due to lack of hardware resources.%0
MessageId: MF_S_ASF_PARSEINPROGRESS
MessageText:
Parsing is still in progress and is not yet complete.%0
MessageId: MF_E_ASF_PARSINGINCOMPLETE
MessageText:
Not enough data have been parsed to carry out the requested action.%0
MessageId: MF_E_ASF_MISSINGDATA
MessageText:
There is a gap in the ASF data provided.%0
MessageId: MF_E_ASF_INVALIDDATA
MessageText:
The data provided are not valid ASF.%0
MessageId: MF_E_ASF_OPAQUEPACKET
MessageText:
The packet is opaque, so the requested information cannot be returned.%0
MessageId: MF_E_ASF_NOINDEX
MessageText:
The requested operation failed since there is no appropriate ASF index.%0
MessageId: MF_E_ASF_OUTOFRANGE
MessageText:
The value supplied is out of range for this operation.%0
MessageId: MF_E_ASF_INDEXNOTLOADED
MessageText:
The index entry requested needs to be loaded before it can be available.%0
MessageId: MF_E_ASF_TOO_MANY_PAYLOADS
MessageText:
The packet has reached the maximum number of payloads.%0
MessageId: MF_E_ASF_UNSUPPORTED_STREAM_TYPE
MessageText:
Stream type is not supported.%0
MessageId: MF_E_ASF_DROPPED_PACKET
MessageText:
One or more ASF packets were dropped.%0
MessageId: MF_E_NO_EVENTS_AVAILABLE
MessageText:
There are no events available in the queue.%0
MessageId: MF_E_INVALID_STATE_TRANSITION
MessageText:
A media source cannot go from the stopped state to the paused state.%0
MessageId: MF_E_END_OF_STREAM
MessageText:
The media stream cannot process any more samples because there are no more samples in the stream.%0
MessageId: MF_E_SHUTDOWN
MessageText:
The request is invalid because Shutdown() has been called.%0
MessageId: MF_E_MP3_NOTFOUND
MessageText:
The MP3 object was not found.%0
MessageId: MF_E_MP3_OUTOFDATA
MessageText:
The MP3 parser ran out of data before finding the MP3 object.%0
MessageId: MF_E_MP3_NOTMP3
MessageText:
The file is not really a MP3 file.%0
MessageId: MF_E_MP3_NOTSUPPORTED
MessageText:
The MP3 file is not supported.%0
MessageId: MF_E_NO_DURATION
MessageText:
The Media stream has no duration.%0
MessageId: MF_E_INVALID_FORMAT
MessageText:
The Media format is recognized but is invalid.%0
MessageId: MF_E_PROPERTY_NOT_FOUND
MessageText:
The property requested was not found.%0
MessageId: MF_E_PROPERTY_READ_ONLY
MessageText:
The property is read only.%0
MessageId: MF_E_PROPERTY_NOT_ALLOWED
MessageText:
The specified property is not allowed in this context.%0
MessageId: MF_E_MEDIA_SOURCE_NOT_STARTED
MessageText:
The media source is not started.%0
MessageId: MF_E_UNSUPPORTED_FORMAT
MessageText:
The Media format is recognized but not supported.%0
MessageId: MF_E_MP3_BAD_CRC
MessageText:
The MPEG frame has bad CRC.%0
MessageId: MF_E_NOT_PROTECTED
MessageText:
The file is not protected.%0
MessageId: MF_E_MEDIA_SOURCE_WRONGSTATE
MessageText:
The media source is in the wrong state%0
MessageId: MF_E_MEDIA_SOURCE_NO_STREAMS_SELECTED
MessageText:
No streams are selected in source presentation descriptor.%0
MessageId: MF_E_CANNOT_FIND_KEYFRAME_SAMPLE
MessageText:
No key frame sample was found.%0
MessageId: MF_E_NETWORK_RESOURCE_FAILURE
MessageText:
An attempt to acquire a network resource failed.%0
MessageId: MF_E_NET_WRITE
MessageText:
Error writing to the network.%0
MessageId: MF_E_NET_READ
MessageText:
Error reading from the network.%0
MessageId: MF_E_NET_REQUIRE_NETWORK
MessageText:
Internal. Entry cannot complete operation without network.%0
MessageId: MF_E_NET_REQUIRE_ASYNC
MessageText:
Internal. Async op is required.%0
MessageId: MF_E_NET_BWLEVEL_NOT_SUPPORTED
MessageText:
Internal. Bandwidth levels are not supported.%0
MessageId: MF_E_NET_STREAMGROUPS_NOT_SUPPORTED
MessageText:
Internal. Stream groups are not supported.%0
MessageId: MF_E_NET_MANUALSS_NOT_SUPPORTED
MessageText:
Manual stream selection is not supported.%0
MessageId: MF_E_NET_INVALID_PRESENTATION_DESCRIPTOR
MessageText:
Invalid presentation descriptor.%0
MessageId: MF_E_NET_CACHESTREAM_NOT_FOUND
MessageText:
Cannot find cache stream.%0
MessageId: MF_I_MANUAL_PROXY
MessageText:
The proxy setting is manual.%0
duplicate removed
MessageId=17011 Severity=Informational Facility=MEDIAFOUNDATION SymbolicName=MF_E_INVALID_REQUEST
Language=English
The request is invalid in the current state.%0
.
MessageId: MF_E_NET_REQUIRE_INPUT
MessageText:
Internal. Entry cannot complete operation without input.%0
MessageId: MF_E_NET_REDIRECT
MessageText:
The client redirected to another server.%0
MessageId: MF_E_NET_REDIRECT_TO_PROXY
MessageText:
The client is redirected to a proxy server.%0
MessageId: MF_E_NET_TOO_MANY_REDIRECTS
MessageText:
The client reached maximum redirection limit.%0
MessageId: MF_E_NET_TIMEOUT
MessageText:
The server, a computer set up to offer multimedia content to other computers, could not handle your request for multimedia content in a timely manner. Please try again later.%0
MessageId: MF_E_NET_CLIENT_CLOSE
MessageText:
The control socket is closed by the client.%0
MessageId: MF_E_NET_BAD_CONTROL_DATA
MessageText:
The server received invalid data from the client on the control connection.%0
MessageId: MF_E_NET_INCOMPATIBLE_SERVER
MessageText:
The server is not a compatible streaming media server.%0
MessageId: MF_E_NET_UNSAFE_URL
MessageText:
Url.%0
MessageId: MF_E_NET_CACHE_NO_DATA
MessageText:
Data is not available.%0
MessageId: MF_E_NET_EOL
MessageText:
End of line.%0
MessageId: MF_E_NET_BAD_REQUEST
MessageText:
The request could not be understood by the server.%0
MessageId: MF_E_NET_INTERNAL_SERVER_ERROR
MessageText:
The server encountered an unexpected condition which prevented it from fulfilling the request.%0
MessageId: MF_E_NET_SESSION_NOT_FOUND
MessageText:
Session not found.%0
MessageId: MF_E_NET_NOCONNECTION
MessageText:
There is no connection established with the Windows Media server. The operation failed.%0
MessageId: MF_E_NET_CONNECTION_FAILURE
MessageText:
The network connection has failed.%0
MessageId: MF_E_NET_INCOMPATIBLE_PUSHSERVER
MessageText:
The Server service that received the HTTP push request is not a compatible version of Windows Media Services (WMS). This error may indicate the push request was received by IIS instead of WMS. Ensure WMS is started and has the HTTP Server control protocol properly enabled and try again.%0
MessageId: MF_E_NET_SERVER_ACCESSDENIED
MessageText:
The Windows Media server is denying access. The username and/or password might be incorrect.%0
MessageId: MF_E_NET_PROXY_ACCESSDENIED
MessageText:
The proxy server is denying access. The username and/or password might be incorrect.%0
MessageId: MF_E_NET_CANNOTCONNECT
MessageText:
Unable to establish a connection to the server.%0
MessageId: MF_E_NET_INVALID_PUSH_TEMPLATE
MessageText:
The specified push template is invalid.%0
MessageId: MF_E_NET_INVALID_PUSH_PUBLISHING_POINT
MessageText:
The specified push publishing point is invalid.%0
MessageId: MF_E_NET_BUSY
MessageText:
The requested resource is in use.%0
MessageId: MF_E_NET_RESOURCE_GONE
MessageText:
The Publishing Point or file on the Windows Media Server is no longer available.%0
MessageId: MF_E_NET_ERROR_FROM_PROXY
MessageText:
The proxy experienced an error while attempting to contact the media server.%0
MessageId: MF_E_NET_PROXY_TIMEOUT
MessageText:
The proxy did not receive a timely response while attempting to contact the media server.%0
MessageId: MF_E_NET_SERVER_UNAVAILABLE
MessageText:
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.%0
MessageId: MF_E_NET_TOO_MUCH_DATA
MessageText:
The encoding process was unable to keep up with the amount of supplied data.%0
MessageId: MF_E_NET_SESSION_INVALID
MessageText:
Session not found.%0
MessageId: MF_E_OFFLINE_MODE
MessageText:
The requested URL is not available in offline mode.%0
MessageId: MF_E_NET_UDP_BLOCKED
MessageText:
A device in the network is blocking UDP traffic.%0
MessageId: MF_E_NET_UNSUPPORTED_CONFIGURATION
MessageText:
The specified configuration value is not supported.%0
MessageId: MF_E_NET_PROTOCOL_DISABLED
MessageText:
The networking protocol is disabled.%0
MessageId: MF_E_ALREADY_INITIALIZED
MessageText:
This object has already been initialized and cannot be re-initialized at this time.%0
MessageId: MF_E_BANDWIDTH_OVERRUN
MessageText:
The amount of data passed in exceeds the given bitrate and buffer window.%0
MessageId: MF_E_LATE_SAMPLE
MessageText:
The sample was passed in too late to be correctly processed.%0
MessageId: MF_E_FLUSH_NEEDED
MessageText:
The requested action cannot be carried out until the object is flushed and the queue is emptied.%0
MessageId: MF_E_INVALID_PROFILE
MessageText:
The profile is invalid.%0
MessageId: MF_E_INDEX_NOT_COMMITTED
MessageText:
The index that is being generated needs to be committed before the requested action can be carried out.%0
MessageId: MF_E_NO_INDEX
MessageText:
The index that is necessary for the requested action is not found.%0
MessageId: MF_E_CANNOT_INDEX_IN_PLACE
MessageText:
The requested index cannot be added in-place to the specified ASF content.%0
MessageId: MF_E_MISSING_ASF_LEAKYBUCKET
MessageText:
The ASF leaky bucket parameters must be specified in order to carry out this request.%0
MessageId: MF_E_INVALID_ASF_STREAMID
MessageText:
The stream id is invalid. The valid range for ASF stream id is from 1 to 127.%0
MessageId: MF_E_STREAMSINK_REMOVED
MessageText:
The requested Stream Sink has been removed and cannot be used.%0
MessageId: MF_E_STREAMSINKS_OUT_OF_SYNC
MessageText:
The various Stream Sinks in this Media Sink are too far out of sync for the requested action to take place.%0
MessageId: MF_E_STREAMSINKS_FIXED
MessageText:
Stream Sinks cannot be added to or removed from this Media Sink because its set of streams is fixed.%0
MessageId: MF_E_STREAMSINK_EXISTS
MessageText:
The given Stream Sink already exists.%0
MessageId: MF_E_SAMPLEALLOCATOR_CANCELED
MessageText:
Sample allocations have been canceled.%0
MessageId: MF_E_SAMPLEALLOCATOR_EMPTY
MessageText:
The sample allocator is currently empty, due to outstanding requests.%0
MessageId: MF_E_SINK_ALREADYSTOPPED
MessageText:
When we try to sopt a stream sink, it is already stopped %0
MessageId: MF_E_ASF_FILESINK_BITRATE_UNKNOWN
MessageText:
The ASF file sink could not reserve AVIO because the bitrate is unknown.%0
MessageId: MF_E_SINK_NO_STREAMS
MessageText:
No streams are selected in sink presentation descriptor.%0
MessageId: MF_S_SINK_NOT_FINALIZED
MessageText:
The sink has not been finalized before shut down. This may cause sink generate a corrupted content.%0
MessageId: MF_E_METADATA_TOO_LONG
MessageText:
A metadata item was too long to write to the output container.%0
MessageId: MF_E_SINK_NO_SAMPLES_PROCESSED
MessageText:
The operation failed because no samples were processed by the sink.%0
MessageId: MF_E_VIDEO_REN_NO_PROCAMP_HW
MessageText:
There is no available procamp hardware with which to perform color correction.%0
MessageId: MF_E_VIDEO_REN_NO_DEINTERLACE_HW
MessageText:
There is no available deinterlacing hardware with which to deinterlace the video stream.%0
MessageId: MF_E_VIDEO_REN_COPYPROT_FAILED
MessageText:
A video stream requires copy protection to be enabled, but there was a failure in attempting to enable copy protection.%0
MessageId: MF_E_VIDEO_REN_SURFACE_NOT_SHARED
MessageText:
A component is attempting to access a surface for sharing that is not shared.%0
MessageId: MF_E_VIDEO_DEVICE_LOCKED
MessageText:
A component is attempting to access a shared device that is already locked by another component.%0
MessageId: MF_E_NEW_VIDEO_DEVICE
MessageText:
The device is no longer available. The handle should be closed and a new one opened.%0
MessageId: MF_E_NO_VIDEO_SAMPLE_AVAILABLE
MessageText:
A video sample is not currently queued on a stream that is required for mixing.%0
MessageId: MF_E_NO_AUDIO_PLAYBACK_DEVICE
MessageText:
No audio playback device was found.%0
MessageId: MF_E_AUDIO_PLAYBACK_DEVICE_IN_USE
MessageText:
The requested audio playback device is currently in use.%0
MessageId: MF_E_AUDIO_PLAYBACK_DEVICE_INVALIDATED
MessageText:
The audio playback device is no longer present.%0
MessageId: MF_E_AUDIO_SERVICE_NOT_RUNNING
MessageText:
The audio service is not running.%0
MessageId: MF_E_TOPO_INVALID_OPTIONAL_NODE
MessageText:
The topology contains an invalid optional node. Possible reasons are incorrect number of outputs and inputs or optional node is at the beginning or end of a segment. %0
MessageId: MF_E_TOPO_CANNOT_FIND_DECRYPTOR
MessageText:
No suitable transform was found to decrypt the content. %0
MessageId: MF_E_TOPO_CODEC_NOT_FOUND
MessageText:
No suitable transform was found to encode or decode the content. %0
MessageId: MF_E_TOPO_CANNOT_CONNECT
MessageText:
Unable to find a way to connect nodes%0
MessageId: MF_E_TOPO_UNSUPPORTED
MessageText:
Unsupported operations in topoloader%0
MessageId: MF_E_TOPO_INVALID_TIME_ATTRIBUTES
MessageText:
The topology or its nodes contain incorrectly set time attributes%0
MessageId: MF_E_TOPO_LOOPS_IN_TOPOLOGY
MessageText:
The topology contains loops, which are unsupported in media foundation topologies%0
MessageId: MF_E_TOPO_MISSING_PRESENTATION_DESCRIPTOR
MessageText:
A source stream node in the topology does not have a presentation descriptor%0
MessageId: MF_E_TOPO_MISSING_STREAM_DESCRIPTOR
MessageText:
A source stream node in the topology does not have a stream descriptor%0
MessageId: MF_E_TOPO_STREAM_DESCRIPTOR_NOT_SELECTED
MessageText:
A stream descriptor was set on a source stream node but it was not selected on the presentation descriptor%0
MessageId: MF_E_TOPO_MISSING_SOURCE
MessageText:
A source stream node in the topology does not have a source%0
MessageId: MF_E_TOPO_SINK_ACTIVATES_UNSUPPORTED
MessageText:
The topology loader does not support sink activates on output nodes.%0
MessageId: MF_E_SEQUENCER_UNKNOWN_SEGMENT_ID
MessageText:
The sequencer cannot find a segment with the given ID.%0\n.
MessageId: MF_S_SEQUENCER_CONTEXT_CANCELED
MessageText:
The context was canceled.%0\n.
MessageId: MF_E_NO_SOURCE_IN_CACHE
MessageText:
Cannot find source in source cache.%0\n.
MessageId: MF_S_SEQUENCER_SEGMENT_AT_END_OF_STREAM
MessageText:
Cannot update topology flags.%0\n.
MessageId: MF_E_TRANSFORM_TYPE_NOT_SET
MessageText:
A valid type has not been set for this stream or a stream that it depends on.%0
MessageId: MF_E_TRANSFORM_STREAM_CHANGE
MessageText:
A stream change has occurred. Output cannot be produced until the streams have been renegotiated.%0
MessageId: MF_E_TRANSFORM_INPUT_REMAINING
MessageText:
The transform cannot take the requested action until all of the input data it currently holds is processed or flushed.%0
MessageId: MF_E_TRANSFORM_PROFILE_MISSING
MessageText:
The transform requires a profile but no profile was supplied or found.%0
MessageId: MF_E_TRANSFORM_PROFILE_INVALID_OR_CORRUPT
MessageText:
The transform requires a profile but the supplied profile was invalid or corrupt.%0
MessageId: MF_E_TRANSFORM_PROFILE_TRUNCATED
MessageText:
The transform requires a profile but the supplied profile ended unexpectedly while parsing.%0
MessageId: MF_E_TRANSFORM_PROPERTY_PID_NOT_RECOGNIZED
MessageText:
The property ID does not match any property supported by the transform.%0
MessageId: MF_E_TRANSFORM_PROPERTY_VARIANT_TYPE_WRONG
MessageText:
The variant does not have the type expected for this property ID.%0
MessageId: MF_E_TRANSFORM_PROPERTY_NOT_WRITEABLE
MessageText:
An attempt was made to set the value on a read-only property.%0
MessageId: MF_E_TRANSFORM_PROPERTY_ARRAY_VALUE_WRONG_NUM_DIM
MessageText:
The array property value has an unexpected number of dimensions.%0
MessageId: MF_E_TRANSFORM_PROPERTY_VALUE_SIZE_WRONG
MessageText:
The array or blob property value has an unexpected size.%0
MessageId: MF_E_TRANSFORM_PROPERTY_VALUE_OUT_OF_RANGE
MessageText:
The property value is out of range for this transform.%0
MessageId: MF_E_TRANSFORM_PROPERTY_VALUE_INCOMPATIBLE
MessageText:
The property value is incompatible with some other property or mediatype set on the transform.%0
MessageId: MF_E_TRANSFORM_NOT_POSSIBLE_FOR_CURRENT_OUTPUT_MEDIATYPE
MessageText:
The requested operation is not supported for the currently set output mediatype.%0
MessageId: MF_E_TRANSFORM_NOT_POSSIBLE_FOR_CURRENT_INPUT_MEDIATYPE
MessageText:
The requested operation is not supported for the currently set input mediatype.%0
MessageId: MF_E_TRANSFORM_NOT_POSSIBLE_FOR_CURRENT_MEDIATYPE_COMBINATION
MessageText:
The requested operation is not supported for the currently set combination of mediatypes.%0
MessageId: MF_E_TRANSFORM_CONFLICTS_WITH_OTHER_CURRENTLY_ENABLED_FEATURES
MessageText:
The requested feature is not supported in combination with some other currently enabled feature.%0
MessageId: MF_E_TRANSFORM_NEED_MORE_INPUT
MessageText:
The transform cannot produce output until it gets more input samples.%0
MessageId: MF_E_TRANSFORM_NOT_POSSIBLE_FOR_CURRENT_SPKR_CONFIG
MessageText:
The requested operation is not supported for the current speaker configuration.%0
MessageId: MF_E_TRANSFORM_CANNOT_CHANGE_MEDIATYPE_WHILE_PROCESSING
MessageText:
The transform cannot accept mediatype changes in the middle of processing.%0
MessageId: MF_S_TRANSFORM_DO_NOT_PROPAGATE_EVENT
MessageText:
The caller should not propagate this event to downstream components.%0
MessageId: MF_E_UNSUPPORTED_D3D_TYPE
MessageText:
The input type is not supported for D3D device.%0
MessageId: MF_E_TRANSFORM_ASYNC_LOCKED
MessageText:
The caller does not appear to support this transform's asynchronous capabilities.%0
MessageId: MF_E_TRANSFORM_CANNOT_INITIALIZE_ACM_DRIVER
MessageText:
An audio compression manager driver could not be initialized by the transform.%0
MessageId: MF_E_LICENSE_INCORRECT_RIGHTS
MessageText:
You are not allowed to open this file. Contact the content provider for further assistance.%0
MessageId: MF_E_LICENSE_OUTOFDATE
MessageText:
The license for this media file has expired. Get a new license or contact the content provider for further assistance.%0
MessageId: MF_E_LICENSE_REQUIRED
MessageText:
You need a license to perform the requested operation on this media file.%0
MessageId: MF_E_DRM_HARDWARE_INCONSISTENT
MessageText:
The licenses for your media files are corrupted. Contact Microsoft product support.%0
MessageId: MF_E_NO_CONTENT_PROTECTION_MANAGER
MessageText:
The APP needs to provide IMFContentProtectionManager callback to access the protected media file.%0
MessageId: MF_E_LICENSE_RESTORE_NO_RIGHTS
MessageText:
Client does not have rights to restore licenses.%0
MessageId: MF_E_BACKUP_RESTRICTED_LICENSE
MessageText:
Licenses are restricted and hence can not be backed up.%0
MessageId: MF_E_LICENSE_RESTORE_NEEDS_INDIVIDUALIZATION
MessageText:
License restore requires machine to be individualized.%0
MessageId: MF_S_PROTECTION_NOT_REQUIRED
MessageText:
Protection for stream is not required.%0
MessageId: MF_E_COMPONENT_REVOKED
MessageText:
Component is revoked.%0
MessageId: MF_E_TRUST_DISABLED
MessageText:
Trusted functionality is currently disabled on this component.%0
MessageId: MF_E_WMDRMOTA_NO_ACTION
MessageText:
No Action is set on WMDRM Output Trust Authority.%0
MessageId: MF_E_WMDRMOTA_ACTION_ALREADY_SET
MessageText:
Action is already set on WMDRM Output Trust Authority.%0
MessageId: MF_E_WMDRMOTA_DRM_HEADER_NOT_AVAILABLE
MessageText:
DRM Heaader is not available.%0
MessageId: MF_E_WMDRMOTA_DRM_ENCRYPTION_SCHEME_NOT_SUPPORTED
MessageText:
Current encryption scheme is not supported.%0
MessageId: MF_E_WMDRMOTA_ACTION_MISMATCH
MessageText:
Action does not match with current configuration.%0
MessageId: MF_E_WMDRMOTA_INVALID_POLICY
MessageText:
Invalid policy for WMDRM Output Trust Authority.%0
MessageId: MF_E_POLICY_UNSUPPORTED
MessageText:
The policies that the Input Trust Authority requires to be enforced are unsupported by the outputs.%0
MessageId: MF_E_OPL_NOT_SUPPORTED
MessageText:
The OPL that the license requires to be enforced are not supported by the Input Trust Authority.%0
MessageId: MF_E_TOPOLOGY_VERIFICATION_FAILED
MessageText:
The topology could not be successfully verified.%0
MessageId: MF_E_SIGNATURE_VERIFICATION_FAILED
MessageText:
Signature verification could not be completed successfully for this component.%0
MessageId: MF_E_DEBUGGING_NOT_ALLOWED
MessageText:
Running this process under a debugger while using protected content is not allowed.%0
MessageId: MF_E_CODE_EXPIRED
MessageText:
MF component has expired.%0
MessageId: MF_E_GRL_VERSION_TOO_LOW
MessageText:
The current GRL on the machine does not meet the minimum version requirements.%0
MessageId: MF_E_GRL_RENEWAL_NOT_FOUND
MessageText:
The current GRL on the machine does not contain any renewal entries for the specified revocation.%0
MessageId: MF_E_GRL_EXTENSIBLE_ENTRY_NOT_FOUND
MessageText:
The current GRL on the machine does not contain any extensible entries for the specified extension GUID.%0
MessageId: MF_E_KERNEL_UNTRUSTED
MessageText:
The kernel isn't secure for high security level content.%0
MessageId: MF_E_PEAUTH_UNTRUSTED
MessageText:
The response from protected environment driver isn't valid.%0
MessageId: MF_E_NON_PE_PROCESS
MessageText:
A non-PE process tried to talk to PEAuth.%0
MessageId: MF_E_REBOOT_REQUIRED
MessageText:
We need to reboot the machine.%0
MessageId: MF_S_WAIT_FOR_POLICY_SET
MessageText:
Protection for this stream is not guaranteed to be enforced until the MEPolicySet event is fired.%0
MessageId: MF_S_VIDEO_DISABLED_WITH_UNKNOWN_SOFTWARE_OUTPUT
MessageText:
This video stream is disabled because it is being sent to an unknown software output.%0
MessageId: MF_E_GRL_INVALID_FORMAT
MessageText:
The GRL file is not correctly formed, it may have been corrupted or overwritten.%0
MessageId: MF_E_GRL_UNRECOGNIZED_FORMAT
MessageText:
The GRL file is in a format newer than those recognized by this GRL Reader.%0
MessageId: MF_E_ALL_PROCESS_RESTART_REQUIRED
MessageText:
The GRL was reloaded and required all processes that can run protected media to restart.%0
MessageId: MF_E_PROCESS_RESTART_REQUIRED
MessageText:
The GRL was reloaded and the current process needs to restart.%0
MessageId: MF_E_USERMODE_UNTRUSTED
MessageText:
The user space is untrusted for protected content play.%0
MessageId: MF_E_PEAUTH_SESSION_NOT_STARTED
MessageText:
PEAuth communication session hasn't been started.%0
MessageId: MF_E_PEAUTH_PUBLICKEY_REVOKED
MessageText:
PEAuth's public key is revoked.%0
MessageId: MF_E_GRL_ABSENT
MessageText:
The GRL is absent.%0
MessageId: MF_S_PE_TRUSTED
MessageText:
The Protected Environment is trusted.%0
MessageId: MF_E_PE_UNTRUSTED
MessageText:
The Protected Environment is untrusted.%0
MessageId: MF_E_PEAUTH_NOT_STARTED
MessageText:
The Protected Environment Authorization service (PEAUTH) has not been started.%0
MessageId: MF_E_INCOMPATIBLE_SAMPLE_PROTECTION
MessageText:
The sample protection algorithms supported by components are not compatible.%0
MessageId: MF_E_PE_SESSIONS_MAXED
MessageText:
No more protected environment sessions can be supported.%0
MessageId: MF_E_HIGH_SECURITY_LEVEL_CONTENT_NOT_ALLOWED
MessageText:
WMDRM ITA does not allow protected content with high security level for this release.%0
MessageId: MF_E_TEST_SIGNED_COMPONENTS_NOT_ALLOWED
MessageText:
WMDRM ITA cannot allow the requested action for the content as one or more components is not properly signed.%0
MessageId: MF_E_ITA_UNSUPPORTED_ACTION
MessageText:
WMDRM ITA does not support the requested action.%0
MessageId: MF_E_ITA_ERROR_PARSING_SAP_PARAMETERS
MessageText:
WMDRM ITA encountered an error in parsing the Secure Audio Path parameters.%0
MessageId: MF_E_POLICY_MGR_ACTION_OUTOFBOUNDS
MessageText:
The Policy Manager action passed in is invalid.%0
MessageId: MF_E_BAD_OPL_STRUCTURE_FORMAT
MessageText:
The structure specifying Output Protection Level is not the correct format.%0
MessageId: MF_E_ITA_UNRECOGNIZED_ANALOG_VIDEO_PROTECTION_GUID
MessageText:
WMDRM ITA does not recognize the Explicite Analog Video Output Protection guid specified in the license.%0
MessageId: MF_E_NO_PMP_HOST
MessageText:
IMFPMPHost object not available.%0
MessageId: MF_E_ITA_OPL_DATA_NOT_INITIALIZED
MessageText:
WMDRM ITA could not initialize the Output Protection Level data.%0
MessageId: MF_E_ITA_UNRECOGNIZED_ANALOG_VIDEO_OUTPUT
MessageText:
WMDRM ITA does not recognize the Analog Video Output specified by the OTA.%0
MessageId: MF_E_ITA_UNRECOGNIZED_DIGITAL_VIDEO_OUTPUT
MessageText:
WMDRM ITA does not recognize the Digital Video Output specified by the OTA.%0
MessageId: MF_E_CLOCK_INVALID_CONTINUITY_KEY
MessageText:
The continuity key supplied is not currently valid.%0
MessageId: MF_E_CLOCK_NO_TIME_SOURCE
MessageText:
No Presentation Time Source has been specified.%0
MessageId: MF_E_CLOCK_STATE_ALREADY_SET
MessageText:
The clock is already in the requested state.%0
MessageId: MF_E_CLOCK_NOT_SIMPLE
MessageText:
The clock has too many advanced features to carry out the request.%0
MessageId: MF_S_CLOCK_STOPPED
MessageText:
Timer::SetTimer returns this success code if called happened while timer is stopped. Timer is not going to be dispatched until clock is running%0
MessageId: MF_E_NO_MORE_DROP_MODES
MessageText:
The component does not support any more drop modes.%0
MessageId: MF_E_NO_MORE_QUALITY_LEVELS
MessageText:
The component does not support any more quality levels.%0
MessageId: MF_E_DROPTIME_NOT_SUPPORTED
MessageText:
The component does not support drop time functionality.%0
MessageId: MF_E_QUALITYKNOB_WAIT_LONGER
MessageText:
Quality Manager needs to wait longer before bumping the Quality Level up.%0
MessageId: MF_E_QM_INVALIDSTATE
MessageText:
Quality Manager is in an invalid state. Quality Management is off at this moment.%0
MessageId: MF_E_TRANSCODE_NO_CONTAINERTYPE
MessageText:
No transcode output container type is specified.%0
MessageId: MF_E_TRANSCODE_PROFILE_NO_MATCHING_STREAMS
MessageText:
The profile does not have a media type configuration for any selected source streams.%0
MessageId: MF_E_TRANSCODE_NO_MATCHING_ENCODER
MessageText:
Cannot find an encoder MFT that accepts the user preferred output type.%0
MessageId: MF_E_ALLOCATOR_NOT_INITIALIZED
MessageText:
Memory allocator is not initialized.%0
MessageId: MF_E_ALLOCATOR_NOT_COMMITED
MessageText:
Memory allocator is not committed yet.%0
MessageId: MF_E_ALLOCATOR_ALREADY_COMMITED
MessageText:
Memory allocator has already been committed.%0
MessageId: MF_E_STREAM_ERROR
MessageText:
An error occurred in media stream.%0
MessageId: MF_E_INVALID_STREAM_STATE
MessageText:
Stream is not in a state to handle the request.%0
MessageId: MF_E_HW_STREAM_NOT_CONNECTED
MessageText:
Hardware stream is not connected yet.%0
Main interface for using Media Foundation with NAudio
initializes MediaFoundation - only needs to be called once per process
Enumerate the installed MediaFoundation transforms in the specified category
A category from MediaFoundationTransformCategories
uninitializes MediaFoundation
Creates a Media type
Creates a media type from a WaveFormat
Creates a memory buffer of the specified size
Memory buffer size in bytes
The memory buffer
Creates a sample object
The sample object
Creates a new attributes store
Initial size
The attributes store
Creates a media foundation byte stream based on a stream object
(usable with WinRT streams)
The input stream
A media foundation byte stream
Creates a source reader based on a byte stream
The byte stream
A media foundation source reader
Interop definitions for MediaFoundation
thanks to Lucian Wischik for the initial work on many of these definitions (also various interfaces)
n.b. the goal is to make as much of this internal as possible, and provide
better .NET APIs using the MediaFoundationApi class instead
Initializes Microsoft Media Foundation.
Shuts down the Microsoft Media Foundation platform
Creates an empty media type.
Initializes a media type from a WAVEFORMATEX structure.
Converts a Media Foundation audio media type to a WAVEFORMATEX structure.
TODO: try making second parameter out WaveFormatExtraData
Creates the source reader from a URL.
Creates the source reader from a byte stream.
Creates the sink writer from a URL or byte stream.
Creates a Microsoft Media Foundation byte stream that wraps an IRandomAccessStream object.
Creates a Microsoft Media Foundation byte stream that wraps an IRandomAccessStream object.
Gets a list of Microsoft Media Foundation transforms (MFTs) that match specified search criteria.
Creates an empty media sample.
Allocates system memory and creates a media buffer to manage it.
Creates an empty attribute store.
Gets a list of output formats from an audio encoder.
All streams
First audio stream
First video stream
Media source
Media Foundation SDK Version
Media Foundation API Version
Media Foundation Version
An abstract base class for simplifying working with Media Foundation Transforms
You need to override the method that actually creates and configures the transform
The Source Provider
The Output WaveFormat
Constructs a new MediaFoundationTransform wrapper
Will read one second at a time
The source provider for input data to the transform
The desired output format
To be implemented by overriding classes. Create the transform object, set up its input and output types,
and configure any custom properties in here
An object implementing IMFTrasform
Disposes this MediaFoundation transform
Disposes this Media Foundation Transform
Destructor
The output WaveFormat of this Media Foundation Transform
Reads data out of the source, passing it through the transform
Output buffer
Offset within buffer to write to
Desired byte count
Number of bytes read
Attempts to read from the transform
Some useful info here:
http://msdn.microsoft.com/en-gb/library/windows/desktop/aa965264%28v=vs.85%29.aspx#process_data
Indicate that the source has been repositioned and completely drain out the transforms buffers
Media Foundation Transform Categories
MFT_CATEGORY_VIDEO_DECODER
MFT_CATEGORY_VIDEO_ENCODER
MFT_CATEGORY_VIDEO_EFFECT
MFT_CATEGORY_MULTIPLEXER
MFT_CATEGORY_DEMULTIPLEXER
MFT_CATEGORY_AUDIO_DECODER
MFT_CATEGORY_AUDIO_ENCODER
MFT_CATEGORY_AUDIO_EFFECT
MFT_CATEGORY_VIDEO_PROCESSOR
MFT_CATEGORY_OTHER
Media Type helper class, simplifying working with IMFMediaType
(will probably change in the future, to inherit from an attributes class)
Currently does not release the COM object, so you must do that yourself
Wraps an existing IMFMediaType object
The IMFMediaType object
Creates and wraps a new IMFMediaType object
Creates and wraps a new IMFMediaType object based on a WaveFormat
WaveFormat
Tries to get a UINT32 value, returning a default value if it doesn't exist
Attribute key
Default value
Value or default if key doesn't exist
Sets a UINT32 attribute on this media type
Attribute key
Attribute value (e.g. 1 for TRUE)
The Sample Rate (valid for audio media types)
The number of Channels (valid for audio media types)
The number of bits per sample (n.b. not always valid for compressed audio types)
The average bytes per second (valid for audio media types)
The Media Subtype. For audio, is a value from the AudioSubtypes class
The Major type, e.g. audio or video (from the MediaTypes class)
Access to the actual IMFMediaType object
Use to pass to MF APIs or Marshal.ReleaseComObject when you are finished with it
Major Media Types
http://msdn.microsoft.com/en-us/library/windows/desktop/aa367377%28v=vs.85%29.aspx
Default
Audio
Video
Protected Media
Synchronized Accessible Media Interchange (SAMI) captions.
Script stream
Still image stream.
HTML stream.
Binary stream.
A stream that contains data files.
Contains information about an input stream on a Media Foundation transform (MFT)
Maximum amount of time between an input sample and the corresponding output sample, in 100-nanosecond units.
Bitwise OR of zero or more flags from the _MFT_INPUT_STREAM_INFO_FLAGS enumeration.
The minimum size of each input buffer, in bytes.
Maximum amount of input data, in bytes, that the MFT holds to perform lookahead.
The memory alignment required for input buffers. If the MFT does not require a specific alignment, the value is zero.
Defines messages for a Media Foundation transform (MFT).
Requests the MFT to flush all stored data.
Requests the MFT to drain any stored data.
Sets or clears the Direct3D Device Manager for DirectX Video Accereration (DXVA).
Drop samples - requires Windows 7
Command Tick - requires Windows 8
Notifies the MFT that streaming is about to begin.
Notifies the MFT that streaming is about to end.
Notifies the MFT that an input stream has ended.
Notifies the MFT that the first sample is about to be processed.
Marks a point in the stream. This message applies only to asynchronous MFTs. Requires Windows 7
Contains information about an output buffer for a Media Foundation transform.
Output stream identifier.
Pointer to the IMFSample interface.
Before calling ProcessOutput, set this member to zero.
Before calling ProcessOutput, set this member to NULL.
Contains information about an output stream on a Media Foundation transform (MFT).
Bitwise OR of zero or more flags from the _MFT_OUTPUT_STREAM_INFO_FLAGS enumeration.
Minimum size of each output buffer, in bytes.
The memory alignment required for output buffers.
Contains media type information for registering a Media Foundation transform (MFT).
The major media type.
The Media Subtype
Contains statistics about the performance of the sink writer.
The size of the structure, in bytes.
The time stamp of the most recent sample given to the sink writer.
The time stamp of the most recent sample to be encoded.
The time stamp of the most recent sample given to the media sink.
The time stamp of the most recent stream tick.
The system time of the most recent sample request from the media sink.
The number of samples received.
The number of samples encoded.
The number of samples given to the media sink.
The number of stream ticks received.
The amount of data, in bytes, currently waiting to be processed.
The total amount of data, in bytes, that has been sent to the media sink.
The number of pending sample requests.
The average rate, in media samples per 100-nanoseconds, at which the application sent samples to the sink writer.
The average rate, in media samples per 100-nanoseconds, at which the sink writer sent samples to the encoder
The average rate, in media samples per 100-nanoseconds, at which the sink writer sent samples to the media sink.
https://docs.microsoft.com/en-us/windows/win32/medfound/mf-transcode-containertype
ASF
MPEG4
MP3
3GP
AC3
ADTS
MPEG2
FMPEG4
WAVE
AVI
AMR
Contains flags for registering and enumeration Media Foundation transforms (MFTs).
None
The MFT performs synchronous data processing in software.
The MFT performs asynchronous data processing in software.
The MFT performs hardware-based data processing, using either the AVStream driver or a GPU-based proxy MFT.
The MFT that must be unlocked by the application before use.
For enumeration, include MFTs that were registered in the caller's process.
The MFT is optimized for transcoding rather than playback.
For enumeration, sort and filter the results.
Bitwise OR of all the flags, excluding MFT_ENUM_FLAG_SORTANDFILTER.
Indicates the status of an input stream on a Media Foundation transform (MFT).
None
The input stream can receive more data at this time.
Describes an input stream on a Media Foundation transform (MFT).
No flags set
Each media sample (IMFSample interface) of input data must contain complete, unbroken units of data.
Each media sample that the client provides as input must contain exactly one unit of data, as defined for the MFT_INPUT_STREAM_WHOLE_SAMPLES flag.
All input samples must be the same size.
MTF Input Stream Holds buffers
The MFT does not hold input samples after the IMFTransform::ProcessInput method returns.
This input stream can be removed by calling IMFTransform::DeleteInputStream.
This input stream is optional.
The MFT can perform in-place processing.
Defines flags for the IMFTransform::ProcessOutput method.
None
The MFT can still generate output from this stream without receiving any more input.
The format has changed on this output stream, or there is a new preferred format for this stream.
The MFT has removed this output stream.
There is no sample ready for this stream.
Indicates whether a Media Foundation transform (MFT) can produce output data.
None
There is a sample available for at least one output stream.
Describes an output stream on a Media Foundation transform (MFT).
No flags set
Each media sample (IMFSample interface) of output data from the MFT contains complete, unbroken units of data.
Each output sample contains exactly one unit of data, as defined for the MFT_OUTPUT_STREAM_WHOLE_SAMPLES flag.
All output samples are the same size.
The MFT can discard the output data from this output stream, if requested by the client.
This output stream is optional.
The MFT provides the output samples for this stream, either by allocating them internally or by operating directly on the input samples.
The MFT can either provide output samples for this stream or it can use samples that the client allocates.
The MFT does not require the client to process the output for this stream.
The MFT might remove this output stream during streaming.
Defines flags for processing output samples in a Media Foundation transform (MFT).
None
Do not produce output for streams in which the pSample member of the MFT_OUTPUT_DATA_BUFFER structure is NULL.
Regenerates the last output sample.
Process Output Status flags
None
The Media Foundation transform (MFT) has created one or more new output streams.
Defines flags for the setting or testing the media type on a Media Foundation transform (MFT).
None
Test the proposed media type, but do not set it.