diff options
author | Yoann Lopes <yoann.lopes@digia.com> | 2013-10-04 17:02:18 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-09 18:01:52 +0200 |
commit | a1cd3c9274789a8735bf5c02094c5c4034992aa6 (patch) | |
tree | 962a8de6c4d0ebc2294ed6f4a458484983f2eb14 /examples/multimedia/audiorecorder/qaudiolevel.cpp | |
parent | 7c9ff56f2f828410efee049ae01e712dc24aaa77 (diff) |
Improve audiorecorder example.
- Possibility to select channel count
- Show audio level for unsigned integer samples
- Show audio level for each channel
- Correctly set output file location
- Update controls depending on the recorder status (rather than the state)
Change-Id: Ieb08c379bb01a11ce1aa52a9d92ea1f320c87d49
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Diffstat (limited to 'examples/multimedia/audiorecorder/qaudiolevel.cpp')
-rw-r--r-- | examples/multimedia/audiorecorder/qaudiolevel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/multimedia/audiorecorder/qaudiolevel.cpp b/examples/multimedia/audiorecorder/qaudiolevel.cpp index 6f2ee1eff..92ec4174a 100644 --- a/examples/multimedia/audiorecorder/qaudiolevel.cpp +++ b/examples/multimedia/audiorecorder/qaudiolevel.cpp @@ -45,6 +45,8 @@ QAudioLevel::QAudioLevel(QWidget *parent) : QWidget(parent) , m_level(0.0) { + setMinimumHeight(15); + setMaximumHeight(50); } void QAudioLevel::setLevel(qreal level) |