[UWP]使用ISimpleAudioVolume [英] [UWP]usage of ISimpleAudioVolume

查看:50
本文介绍了[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


这篇关于[UWP]使用ISimpleAudioVolume的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆