summaryrefslogtreecommitdiffstats
path: root/demos/spectrum/spectrum.pri
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-04-29 16:30:16 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-05-05 09:24:01 (GMT)
commite9dda3cabdcfdeb5d659b94640410b486ad58921 (patch)
tree169f3f6651c09d1775983c271df169be78d524d4 /demos/spectrum/spectrum.pri
parent6c8acf656a9293db2fdbad569bb1fa3a83975462 (diff)
downloadQt-e9dda3cabdcfdeb5d659b94640410b486ad58921.zip
Qt-e9dda3cabdcfdeb5d659b94640410b486ad58921.tar.gz
Qt-e9dda3cabdcfdeb5d659b94640410b486ad58921.tar.bz2
Add spectrum analyzer demo app
This application is a demo which uses the QtMultimedia APIs to capture and play back PCM audio. While either recording or playback is ongoing, the application performs real-time level and frequency spectrum analysis. Reviewed-by: Alessandro Portale
Diffstat (limited to 'demos/spectrum/spectrum.pri')
-rw-r--r--demos/spectrum/spectrum.pri37
1 files changed, 37 insertions, 0 deletions
diff --git a/demos/spectrum/spectrum.pri b/demos/spectrum/spectrum.pri
new file mode 100644
index 0000000..c09aa0d
--- /dev/null
+++ b/demos/spectrum/spectrum.pri
@@ -0,0 +1,37 @@
+# The following macros allow certain features and debugging output
+# to be disabled / enabled at compile time.
+
+# Debug output from spectrum calculation
+DEFINES += LOG_SPECTRUMANALYSER
+
+# Debug output from waveform generation
+#DEFINES += LOG_WAVEFORM
+
+# Debug output from engine
+DEFINES += LOG_ENGINE
+
+# Dump input data to spectrum analyer, plus artefact data files
+#DEFINES += DUMP_SPECTRUMANALYSER
+
+# Dump captured audio data
+#DEFINES += DUMP_CAPTURED_AUDIO
+
+# Disable calculation of level
+#DEFINES += DISABLE_LEVEL
+
+# Disable calculation of frequency spectrum
+# If this macro is defined, the FFTReal DLL will not be built
+#DEFINES += DISABLE_FFT
+
+# Disables rendering of the waveform
+#DEFINES += DISABLE_WAVEFORM
+
+# If defined, superimpose the progress bar on the waveform
+DEFINES += SUPERIMPOSE_PROGRESS_ON_WAVEFORM
+
+# Perform spectrum analysis calculation in a separate thread
+DEFINES += SPECTRUM_ANALYSER_SEPARATE_THREAD
+
+# Suppress warnings about strncpy potentially being unsafe, emitted by MSVC
+win32: DEFINES += _CRT_SECURE_NO_WARNINGS
+