使用 ALSA 无法将音频输出从一个声卡即时切换到另一个声卡。为了将我的 NuForce 声卡定义为要使用的声卡,我创建了包含以下内容的文件 ~/.asoundrc
\n\npcm.!default {\n type hw\n card N2\n}\n\nctl.!default {\n type hw\n card N2\n}\nRun Code Online (Sandbox Code Playgroud)\n\n其中名称 N2 来自文件 /proc/asound/cards 的内容:
\n\n$ cat /proc/asound/cards\n 0 [NVidia ]: HDA-Intel - HDA NVidia\n HDA NVidia at 0x93480000 irq 23\n 1 [B10 ]: USB-Audio - Benchmark 1.0\n Texas Instruments Benchmark 1.0 at usb-0000:00:04.0-1, full speed\n 2 [N2 ]: USB-Audio - NuForce \xc2\xb5DAC 2\n NuForce NuForce \xc2\xb5DAC 2 at usb-0000:00:04.0-3, full speed\nRun Code Online (Sandbox Code Playgroud)\n\n如果我想更改为 B10,我需要编辑 ~/.asoundrc 并重新启动声音应用程序。
\n| 归档时间: |
|
| 查看次数: |
14691 次 |
| 最近记录: |