DirectSound 影响 WinXP 上的系统音量

发布于 2024-09-02 05:26:26 字数 414 浏览 4 评论 0原文

我目前正在开发一个用于语音网络聊天软件的音频引擎。 一切工作正常 - 捕获/播放/混合通道。

问题是在Windows XP下使用它。我一直在收到包含信息的用户报告 启动应用程序后,它们的全局系统音量设置为零。

我假设这是因为 WaveOut/DSound 冲突而发生的。

如何强制 DSound 不影响系统音量? 播放设备初始化: DirectSoundCreate8(&GUID, &pAudio, NULL);

并且:

pAudio->SetCooperativeLevel(parentWnd, DSSCL_PRIORITY);

我目前无法调试该应用程序,因为我使用的是 Vista 并且一切正常。

希望你能帮我解决这个问题! 多谢!

问候, 安东.

I'm currently developing an audio engine that is used in voice network chat software.
Everything is working fine - capture/playback/mixing channels.

The problem is in using it under Windows XP. I've been getting user reports with information
that their global system volume is set to zero after launching the application.

I'm assuming that happens because of WaveOut/DSound conflict.

How can I force DSound not to affect system volume?
Playback device is initialized:
DirectSoundCreate8(&GUID, &pAudio, NULL);

and:

pAudio->SetCooperativeLevel(parentWnd, DSSCL_PRIORITY);

I'm currently not able to debug the application, cause I'm using Vista and everything is OK.

Hope you can help me with this issue!
Thanks a Lot!

Regards,
Anton.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

維他命╮ 2024-09-09 05:26:26

您有什么理由不只设置辅助缓冲区的音量?工作完成了!

如果您已经在辅助缓冲区上设置了卷,那么您所需要的只是一个全局乘数来乘以在缓冲区上设置的每个卷。

Any reason you don't just set the volume on the secondary buffers? Job done!

If you already are setting the volume on the secondary buffers then all you need is a global multiplier to multiplier each volume that gets set on a buffer by.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文