Windows IoT USB音频适配器 [英] Windows IoT USB Audio Adapter

查看:95
本文介绍了Windows IoT USB音频适配器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个带麦克风的USB音频适配器。排除每个...连接到我的锉刀.. 

Hi, I have 2 USB audio adapters with mic & line out each... connected to my rasp pi.. 

我如何确保每次启动我的应用程序并运行USB音频适配器的观察者枚举时,两者都是渲染&捕获设备将分别根据相同的适配器进行识别。 

How do i ensure every time when I start up my app and run my watcher enumeration for the USB audio adapters, both the render & capture device will be recognized according to the same adapter respectively. 

无论如何我仍然保存相应的渲染和放大器。在应用设置中捕获设备配置。

Of is there anyway for me to save the respective render & capture device configuration in app setting.

谢谢。

Thanks.

推荐答案

Hello mylim,

Hello mylim,

我测试  设备枚举和配对示例。它可以列出我的两个USB耳机:

I test the Device enumeration and pairing sample on Raspberry Pi. It can list my two USB Headsets like this:

您可以尝试查看它是否适用于您的2个USB音频适配器。

You can have a try to see if it works for your 2 USB audio adapters.

例如,关于保存应用设置,您可以在
StopWatcher()

About save app settings, for example, you can add the following code piece in StopWatcher():

            Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;

            if (ResultCollection != null)
            {
                foreach (var device in ResultCollection)
                {
                    var deviceInfo = device.DeviceInformation;

                    localSettings.Values[deviceInfo.Name] = deviceInfo.Id;
                }
            }

如果我有一些误解或您有任何疑虑,请随意让我。

If I have some misunderstanding or you have any concern, feel free let me.

祝你好运,

Rita

< span style ="color:#333333">


这篇关于Windows IoT USB音频适配器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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