이 페이지에서

오디오 소스 예시

QAudioSource 클래스를 사용하여 오디오 녹음하기.

'오디오 소스'는 ` QAudioSource`의 기본적인 사용 사례를 보여줍니다.

실시간 오디오 파형과 제어 버튼을 표시하는 UI

Qt는 표준 애플리케이션 사용자 인터페이스 내에서 오디오 기능을 사용할 수 있도록 ` QAudioSource ` 클래스를 제공합니다.

이 예제는 마이크에서 입력된 오디오의 최대 선형 값을 계산하여 그 결과를 표시합니다. 사용자는 UI를 통해 오디오 입력 장치를 선택하고, 오디오 스트림을 일시 중지 및 재개하며, 다양한 작동 모드 간에 전환하고, 볼륨을 조절하고, 오디오 형식 매개변수를 변경할 수 있습니다.

예제 실행

다음 경로에서 예제를 실행할 수 있습니다.

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.