• 大小: 2.49MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-10-10
  • 语言: C#
  • 标签: c#  默认设备  音频切换  

资源简介

自动获取音频输入输出设备,选择特定设备后设置成默认

资源截图

代码片段和文件信息

using AudioSwitcher.AudioApi;
using AudioSwitcher.AudioApi.CoreAudio;

namespace FortyOne.AudioSwitcher
{
    public static class AudioDeviceManager
    {
        private static IAudioController _instance;

        public static IAudioController Controller
        {
            get
            {
                //Lazy initialization of Controller
                return _instance ?? (_instance = new CoreAudioController());
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .......     26782  2018-04-05 03:10  Screenshots\playback.png

    .......     28745  2018-04-05 03:10  Screenshots\Settings.png

    .......     22899  2018-04-05 03:10  Screenshots\Tray.png

    .......      1541  2018-04-05 03:10  .gitignore

    .......      2530  2018-04-05 03:10  FortyOne.AudioSwitcher.sln

    .......      1764  2018-04-05 03:10  fortyone.pfx

    .......       632  2018-04-05 03:10  ISSUE_TEMPLATE

    .......      2609  2018-04-05 03:10  LICENSE

    .......        91  2018-04-05 03:10  README.md

    .......       583  2018-04-05 03:10  FortyOne.AudioSwitcher\app.config

    .......       478  2018-04-05 03:10  FortyOne.AudioSwitcher\AudioDeviceManager.cs

    .......     52700  2018-04-05 03:10  FortyOne.AudioSwitcher\AudioSwitcher.cs

    .......     62552  2018-04-05 03:10  FortyOne.AudioSwitcher\AudioSwitcher.Designer.cs

    .......    164834  2018-04-05 03:10  FortyOne.AudioSwitcher\AudioSwitcher.resx

     文件      98816  2016-10-06 22:33  FortyOne.AudioSwitcher\bin\Debug\AudioSwitcher.AudioApi.CoreAudio.dll

     文件      35840  2016-10-06 22:33  FortyOne.AudioSwitcher\bin\Debug\AudioSwitcher.AudioApi.dll

     文件     366080  2018-05-22 16:26  FortyOne.AudioSwitcher\bin\Debug\AudioSwitcher.exe

     文件        583  2018-04-05 03:10  FortyOne.AudioSwitcher\bin\Debug\AudioSwitcher.exe.config

     文件     224768  2018-05-22 16:26  FortyOne.AudioSwitcher\bin\Debug\AudioSwitcher.pdb

     文件      43008  2016-10-21 09:33  FortyOne.AudioSwitcher\bin\Debug\fastjson.dll

     文件      28672  2015-11-06 10:58  FortyOne.AudioSwitcher\bin\Debug\LibZ.Bootstrap.dll

     文件      23552  2013-11-27 22:41  FortyOne.AudioSwitcher\bin\Debug\WindowsInput.dll

     文件     123227  2013-11-27 22:41  FortyOne.AudioSwitcher\bin\Debug\WindowsInput.xml

    .......       474  2018-04-05 03:10  FortyOne.AudioSwitcher\ChangeLogForm.cs

    .......      2997  2018-04-05 03:10  FortyOne.AudioSwitcher\ChangeLogForm.Designer.cs

    .......      5698  2018-04-05 03:10  FortyOne.AudioSwitcher\ChangeLogForm.resx

    .......     12616  2018-04-05 03:10  FortyOne.AudioSwitcher\Configuration\ConfigurationSettings.cs

    .......      2536  2018-04-05 03:10  FortyOne.AudioSwitcher\Configuration\ConfigurationWriter.cs

    .......       780  2018-04-05 03:10  FortyOne.AudioSwitcher\Configuration\IniSettings.cs

    .......       269  2018-04-05 03:10  FortyOne.AudioSwitcher\Configuration\ISettingsSource.cs

............此处省略170个文件信息

评论

共有 条评论