程序来更改win7中的默认音频采样率 [英] program to change the default audio sample rate in win7

查看:450
本文介绍了程序来更改win7中的默认音频采样率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

我是这个音频应用开发的新手,并且正在寻找一个程序来更改Win7中音频的默认采样率。

I am new to this audio app development and looking for a program to change the default sample rate for audio in Win7.

我在互联网上搜索,我唯一能找到的是使用PKEY_AudioEngine_DeviceFormat的示例函数。

I searched on internet and only thing I could found was a sample function which is using PKEY_AudioEngine_DeviceFormat.

但是有人提到它不起作用。我编译了代码但得到了链接错误:

But there it was mentioned that it does not work. I have compiled the code but getting a linking error:

错误LNK2001:未解析的外部符号_PKEY_AudioEngine_DeviceFormat

error LNK2001: unresolved external symbol _PKEY_AudioEngine_DeviceFormat

任何人都可以帮我解决这个问题吗?

Can anyone please help me in getting a workable solution to this problem?

 

- ak

推荐答案

没有支持从应用程序更改默认采样率的机制 - 该权限是通过"默认格式"保留给用户的。声音控制面板中的下拉列表。

There is no supported mechanism for changing the default sample rate from an app - that privilege is reserved to the user, via the "Default Format" dropdown in the Sound control panel.

为什么要更改应用中的默认采样率? 如果您想使用非默认采样率播放(或录制),可以使用独占模式。

Why do you want to change the default sample rate in your app?  If you want to play (or record) using a sample rate other than the default, you can use exclusive mode.


这篇关于程序来更改win7中的默认音频采样率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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