WMEncoder.RecordingMute
The RecordingMute property specifies and retrieves a Boolean value indicating whether a specific audio stream is muted.
Syntax
WMEncoder.RecordingMute(iIndex) = Boolean
Boolean = WMEncoder.RecordingMute(iIndex)
Parameters
iIndex
[in] Integer containing the index of the audio stream.
Property Value
A Boolean that indicates whether the audio stream is muted.
If this property fails, it returns an error number.
Number | Description |
0x80070057 | The index is not valid. |
Remarks
You must set the iIndex parameter to 0 because multiple audio streams are not currently supported.
Example Code
' Create a WMEncoder object.
Dim Encoder As WMEncoder
Set Encoder = New WMEncoder
' Declare objects and variables.
Dim SrcGrpColl As IWMEncSourceGroupCollection
Dim SrcGrp As IWMEncSourceGroup
Dim SrcAud As IWMEncSource
Dim SrcVid As IWMEncVideoSource
' Create an IWMEncSourceGroupCollection object.
Set SrcGrpColl = Encoder.SourceGroupCollection
' Create an IWMEncSourceGroup object.
Set SrcGrp = SrcGrpColl.Add("SG_1")
' Create an audio and a video source object.
Set SrcAud = SrcGrp.AddSource(WMENC_AUDIO)
Set SrcVid = SrcGrp.AddSource(WMENC_VIDEO)
' Specify the .avi source file.
SrcAud.SetInput "C:\filename.avi"
SrcVid.SetInput "C:\filename.avi"
' Determine whether the audio stream is muted. If it is not
' muted, then mute it.
Dim bRecordMute As Boolean
bRecordMute = Encoder.RecordingMute(0)
If bRecordMute = False Then
Encoder.RecordingMute(0) = True
End If
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also