首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > VB Dotnet >

Win7上使用WMEncoder.exe 64 实现录音,找不到WMEncoder.ProfileCollection

2012-12-21 
Win7下使用WMEncoder.exe 64 实现录音,找不到WMEncoder.ProfileCollection本帖最后由 ryueiketu 于 2012-0

Win7下使用WMEncoder.exe 64 实现录音,找不到WMEncoder.ProfileCollection
本帖最后由 ryueiketu 于 2012-08-30 09:16:26 编辑 我用WMEncoder.exe 和Interop.WMEncoderLib.dll开发了个小的录音功能。在XP下好用,
可是在Win7 64位下,出现初始化WMEncoder对象的错误,于是我又下了WMEncoder.exe 64,安装后,初始化可以了,但是找不到ProfileCollection下可用的资源文件了。。有知道的高手请指点。。急呀。。
代码


            dim m_WMEncoder As New WMEncoder
            Dim sg As IWMEncSourceGroup = m_WMEncoder.SourceGroupCollection.Add("SG_1")
            sg.AddSource(WMENC_SOURCE_TYPE.WMENC_AUDIO).SetInput("Default_Audio_Device", "DEVICE", "")
            m_WMEncoder.File.LocalFileName = strSavePath

            For i As Integer = 0 To m_WMEncoder.ProfileCollection.Count - 1
                If m_WMEncoder.ProfileCollection.Item(i).Name = "Windows Media Audio 8 for Dial-up Modem (CD quality, 64 Kbps)" Then
                    sg.Profile = m_WMEncoder.ProfileCollection.Item(i)
                    Exit For
                End If
            Next
            m_WMEncoder.PrepareToEncode(True)
            m_WMEncoder.Start()
            m_bIsRecording = True

m_WMEncoder.ProfileCollection.Count 这句话,在XP下能得到33个资源文件,可是在Win7下是0.。。救命呀。

木有人理我。。。分数太少了??如果问题解决100分送上。。

[解决办法]
我轻轻的顶一下吧。。兄弟们呀。。救命呀
[解决办法]
毫无人气呀。。。都去哪了,高手们!!!
[解决办法]
眼看的我的贴子就石沉大海了

热点排行