[UWP]使用ISimpleAudioVolume
问题描述:
Hello
在
WASAPI示例 ISimpleAudioVolume在函数体内初始化。
In WASAPI example ISimpleAudioVolume initialized inside function body.
在我的应用程序中,我决定将其作为类成员,如下所示:
In my app I decided make it class member, like that:
class someclass
{
ISimpleAudioVolume* _sessionvol;//errors C2143, C4430, C2238
void func()
{
ISimpleAudioVolume* psessionvol;// OK
}
}
如何使用ISimpleAudioVolume作为类成员或此真的没必要,我应该每次查询界面?
How can I use ISimpleAudioVolume as class member or this really not necessary and i should every time query interface?
答
嗨 Romka2411,
Hi Romka2411,
您在哪里使用该课程?你可以分享一个我可以测试它的完整课程吗?
Where does you use the Class? Can you share a complete class that I can test it?
我无法重现你的问题,即ISimpleAudioVolume没有显示错误。
I can not reproduce your issue that the ISimpleAudioVolume does not show errors.
最好的问候,
Jayden Gu
Jayden Gu