Analyzing a raw audio stream using the FFTReal library.
Spectrum demonstrates how the Qt Multimedia module can be used to analyze an audio stream while recording it, and also play the recorded stream.
Because Qt Multimedia allows the application to access the raw audio stream, the data can either be inspected or modified by the application. The Spectrum Analyzer example displays three pieces of information while audio is being either captured or played back:
Spectrum analysis is performed by calculating the Fast Fourier Transform (FFT) of a segment of audio data. An open-source library, FFTReal is used to compute the transform. FFTReal is available under the GNU Library General Public License 2.0 or later.
要運行範例從 Qt Creator ,打開 Welcome 模式,然後選擇範例從 Examples 。更多信息,拜訪 構建和運行範例 .