Interface IMFAudioMediaType
Namespace: MediaFoundation
Assembly: MediaFoundation.dll
Syntax
[Guid("26A0ADC3-CE26-4672-9304-69552EDD3FAF")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Obsolete("To get the properties of the audio format, applications should use the media type attributes. If you need to convert the media type into a WAVEFORMATEX structure, call MFCreateWaveFormatExFromMFMediaType")]
public interface IMFAudioMediaType : IMFMediaType, IMFAttributes
Methods
Compare(IMFAttributes, MFAttributesMatchType, out Boolean)
Declaration
HResult Compare(IMFAttributes pTheirs, MFAttributesMatchType MatchType, out bool pbResult)
Parameters
IMFAttributes
pTheirs
|
MFAttributesMatchType
MatchType
|
System.Boolean
pbResult
|
Returns
HResult
|
CompareItem(Guid, ConstPropVariant, out Boolean)
Declaration
HResult CompareItem(Guid guidKey, ConstPropVariant Value, out bool pbResult)
Parameters
System.Guid
guidKey
|
ConstPropVariant
Value
|
System.Boolean
pbResult
|
Returns
HResult
|
CopyAllItems(IMFAttributes)
Declaration
HResult CopyAllItems(IMFAttributes pDest)
Parameters
IMFAttributes
pDest
|
Returns
HResult
|
DeleteAllItems()
DeleteItem(Guid)
FreeRepresentation(Guid, IntPtr)
Declaration
HResult FreeRepresentation(Guid guidRepresentation, IntPtr pvRepresentation)
Parameters
System.Guid
guidRepresentation
|
System.IntPtr
pvRepresentation
|
Returns
HResult
|
GetAllocatedBlob(Guid, out IntPtr, out Int32)
Declaration
HResult GetAllocatedBlob(Guid guidKey, out IntPtr ip, out int pcbSize)
Parameters
System.Guid
guidKey
|
System.IntPtr
ip
|
System.Int32
pcbSize
|
Returns
HResult
|
GetAllocatedString(Guid, out String, out Int32)
Declaration
HResult GetAllocatedString(Guid guidKey, out string ppwszValue, out int pcchLength)
Parameters
System.Guid
guidKey
|
System.String
ppwszValue
|
System.Int32
pcchLength
|
Returns
HResult
|
GetAudioFormat()
Declaration
[Obsolete("To get the properties of the audio format, applications should use the media type attributes. If you need to convert the media type into a WAVEFORMATEX structure, call MFCreateWaveFormatExFromMFMediaType")]
IntPtr GetAudioFormat()
Returns
System.IntPtr
|
GetBlob(Guid, Byte[], Int32, out Int32)
Declaration
HResult GetBlob(Guid guidKey, byte[] pBuf, int cbBufSize, out int pcbBlobSize)
Parameters
System.Guid
guidKey
|
System.Byte[]
pBuf
|
System.Int32
cbBufSize
|
System.Int32
pcbBlobSize
|
Returns
HResult
|
GetBlobSize(Guid, out Int32)
Declaration
HResult GetBlobSize(Guid guidKey, out int pcbBlobSize)
Parameters
System.Guid
guidKey
|
System.Int32
pcbBlobSize
|
Returns
HResult
|
GetCount(out Int32)
GetDouble(Guid, out Double)
Declaration
HResult GetDouble(Guid guidKey, out double pfValue)
Parameters
System.Guid
guidKey
|
System.Double
pfValue
|
Returns
HResult
|
GetGUID(Guid, out Guid)
Declaration
HResult GetGUID(Guid guidKey, out Guid pguidValue)
Parameters
System.Guid
guidKey
|
System.Guid
pguidValue
|
Returns
HResult
|
GetItem(Guid, PropVariant)
Declaration
HResult GetItem(Guid guidKey, PropVariant pValue)
Parameters
System.Guid
guidKey
|
PropVariant
pValue
|
Returns
HResult
|
GetItemByIndex(Int32, out Guid, PropVariant)
Declaration
HResult GetItemByIndex(int unIndex, out Guid pguidKey, PropVariant pValue)
Parameters
System.Int32
unIndex
|
System.Guid
pguidKey
|
PropVariant
pValue
|
Returns
HResult
|
GetItemType(Guid, out MFAttributeType)
Declaration
HResult GetItemType(Guid guidKey, out MFAttributeType pType)
Parameters
System.Guid
guidKey
|
MFAttributeType
pType
|
Returns
HResult
|
GetMajorType(out Guid)
Declaration
HResult GetMajorType(out Guid pguidMajorType)
Parameters
System.Guid
pguidMajorType
|
Returns
HResult
|
GetRepresentation(Guid, out IntPtr)
Declaration
HResult GetRepresentation(Guid guidRepresentation, out IntPtr ppvRepresentation)
Parameters
System.Guid
guidRepresentation
|
System.IntPtr
ppvRepresentation
|
Returns
HResult
|
GetString(Guid, StringBuilder, Int32, out Int32)
Declaration
HResult GetString(Guid guidKey, StringBuilder pwszValue, int cchBufSize, out int pcchLength)
Parameters
System.Guid
guidKey
|
System.Text.StringBuilder
pwszValue
|
System.Int32
cchBufSize
|
System.Int32
pcchLength
|
Returns
HResult
|
GetStringLength(Guid, out Int32)
Declaration
HResult GetStringLength(Guid guidKey, out int pcchLength)
Parameters
System.Guid
guidKey
|
System.Int32
pcchLength
|
Returns
HResult
|
GetUINT32(Guid, out Int32)
Declaration
HResult GetUINT32(Guid guidKey, out int punValue)
Parameters
System.Guid
guidKey
|
System.Int32
punValue
|
Returns
HResult
|
GetUINT64(Guid, out Int64)
Declaration
HResult GetUINT64(Guid guidKey, out long punValue)
Parameters
System.Guid
guidKey
|
System.Int64
punValue
|
Returns
HResult
|
GetUnknown(Guid, Guid, out Object)
Declaration
HResult GetUnknown(Guid guidKey, Guid riid, out object ppv)
Parameters
System.Guid
guidKey
|
System.Guid
riid
|
System.Object
ppv
|
Returns
HResult
|
IsCompressedFormat(out Boolean)
Declaration
HResult IsCompressedFormat(out bool pfCompressed)
Parameters
System.Boolean
pfCompressed
|
Returns
HResult
|
IsEqual(IMFMediaType, out MFMediaEqual)
Declaration
HResult IsEqual(IMFMediaType pIMediaType, out MFMediaEqual pdwFlags)
Parameters
IMFMediaType
pIMediaType
|
MFMediaEqual
pdwFlags
|
Returns
HResult
|
LockStore()
SetBlob(Guid, Byte[], Int32)
Declaration
HResult SetBlob(Guid guidKey, byte[] pBuf, int cbBufSize)
Parameters
System.Guid
guidKey
|
System.Byte[]
pBuf
|
System.Int32
cbBufSize
|
Returns
HResult
|
SetDouble(Guid, Double)
Declaration
HResult SetDouble(Guid guidKey, double fValue)
Parameters
System.Guid
guidKey
|
System.Double
fValue
|
Returns
HResult
|
SetGUID(Guid, Guid)
Declaration
HResult SetGUID(Guid guidKey, Guid guidValue)
Parameters
System.Guid
guidKey
|
System.Guid
guidValue
|
Returns
HResult
|
SetItem(Guid, ConstPropVariant)
Declaration
HResult SetItem(Guid guidKey, ConstPropVariant Value)
Parameters
System.Guid
guidKey
|
ConstPropVariant
Value
|
Returns
HResult
|
SetString(Guid, String)
Declaration
HResult SetString(Guid guidKey, string wszValue)
Parameters
System.Guid
guidKey
|
System.String
wszValue
|
Returns
HResult
|
SetUINT32(Guid, Int32)
Declaration
HResult SetUINT32(Guid guidKey, int unValue)
Parameters
System.Guid
guidKey
|
System.Int32
unValue
|
Returns
HResult
|
SetUINT64(Guid, Int64)
Declaration
HResult SetUINT64(Guid guidKey, long unValue)
Parameters
System.Guid
guidKey
|
System.Int64
unValue
|
Returns
HResult
|
SetUnknown(Guid, Object)
Declaration
HResult SetUnknown(Guid guidKey, object pUnknown)
Parameters
System.Guid
guidKey
|
System.Object
pUnknown
|
Returns
HResult
|