音频源示例

使用QAudioSource 类录制音频。

音频源演示了QAudioSource 的基本用例。

Qt XML 提供的QAudioSource 类可在标准应用程序用户界面中启用音频功能。

该示例计算麦克风输入音频的最大线性值并显示输出。

运行示例

要从 Qt Creator,打开Welcome 模式,并从Examples 中选择示例。更多信息,请参阅Qt Creator: 教程:构建并运行

示例项目 @ code.qt.io

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.