Commit 2831fb0e authored by VaL Doroshchuk's avatar VaL Doroshchuk
Browse files

Audiocapture: Fix setting QAudioEncoderSettings::bitRate


The sample size is now correctly calculated using provided bit rate via QAudioEncoderSettings.

The bit rate is calculated like
bitrate = sample size * sample rate * channel count

Fixed bug when sample size is 8 when bit rate and sample rate is 8000
which is not correct. The bit rate must be 8 * 8000.

Task-number: QTBUG-65207
Change-Id: I660fadfaaf6cc63004480fb84165252360b7f75e
Reviewed-by: default avatarChristian Stromme <christian.stromme@qt.io>
parent d49abfda
Showing with 6 additions and 7 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment