mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 17:03:43 +02:00
Revert output sample rate to native rate
This commit is contained in:
parent
988acdb3f9
commit
00e3de4e0a
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ bool nativeFormatForAudioDevice(const QAudioDeviceInfo& audioDevice,
|
|||
// Using the HW sample rate (AUDIO_INPUT_FLAG_FAST) in some samsung phones causes a low volume at input stream
|
||||
// Changing the sample rate forces a resampling that (in samsung) amplifies +18 dB
|
||||
QAndroidJniObject brand = QAndroidJniObject::getStaticObjectField<jstring>("android/os/Build", "BRAND");
|
||||
if (brand.toString().contains("samsung", Qt::CaseInsensitive)) {
|
||||
if (audioDevice == QAudioDeviceInfo::defaultInputDevice() && brand.toString().contains("samsung", Qt::CaseInsensitive)) {
|
||||
audioFormat.setSampleRate(24000);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue