本页内容

音频输出示例

使用QAudioSink 类启用音频播放。

“音频输出”演示了QAudioSink 的基本用法。

带有播放控制和音频输出模式选择功能的用户界面

本示例提供了一个音调发生器,用于实现连续的音频播放。用户界面允许用户选择音频输出设备、暂停和恢复播放、在不同的操作模式之间切换、调节音量以及更改音频格式参数。

运行示例

您可以通过以下方式运行该示例:

示例项目 @ code.qt.io

© 2026 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.