mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:28:37 +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
|
// 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
|
// Changing the sample rate forces a resampling that (in samsung) amplifies +18 dB
|
||||||
QAndroidJniObject brand = QAndroidJniObject::getStaticObjectField<jstring>("android/os/Build", "BRAND");
|
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);
|
audioFormat.setSampleRate(24000);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue