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>
This commit is contained in:
Yoann Lopes
2013-10-04 17:02:18 +02:00
committed by The Qt Project
parent 7c9ff56f2f
commit a1cd3c9274
5 changed files with 226 additions and 132 deletions

View File

@@ -45,6 +45,8 @@ QAudioLevel::QAudioLevel(QWidget *parent)
: QWidget(parent)
, m_level(0.0)
{
setMinimumHeight(15);
setMaximumHeight(50);
}
void QAudioLevel::setLevel(qreal level)