OpenSL: Fix volume scale
authorChristian Strømme <christian.stromme@digia.com>
Tue, 12 Nov 2013 03:01:28 +0000 (04:01 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 2 Dec 2013 17:05:52 +0000 (18:05 +0100)
commit14f31c29cf0bc78f66064306a91d3cb69677f542
tree00f4c3dbbca6c3ecd2a8d01e5fba4077ec891a8b
parentdd11f6d0527bfac17d855909397f66fe816a0d1f
OpenSL: Fix volume scale

The old code was assuming that the interface was expecting power
values, while it actually uses amplitude values. In addition the
difference between the min/max values where used, resulting in
quite high gain values.

Task-number: QTBUG-34777

Change-Id: Ibd3f7774b67c44e37dfd79cbe6e2c35746f00a0a
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/plugins/opensles/qopenslesaudiooutput.cpp