mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 21:15:07 +02:00
Make louder android mic
This commit is contained in:
parent
07a7bbbcf6
commit
c11f4be5c1
1 changed files with 6 additions and 0 deletions
|
@ -482,6 +482,12 @@ bool nativeFormatForAudioDevice(const QAudioDeviceInfo& audioDevice,
|
||||||
audioFormat.setSampleType(QAudioFormat::SignedInt);
|
audioFormat.setSampleType(QAudioFormat::SignedInt);
|
||||||
audioFormat.setByteOrder(QAudioFormat::LittleEndian);
|
audioFormat.setByteOrder(QAudioFormat::LittleEndian);
|
||||||
|
|
||||||
|
#if defined(Q_OS_ANDROID)
|
||||||
|
if (audioDevice == QAudioDeviceInfo::defaultInputDevice()) {
|
||||||
|
audioFormat.setSampleRate(44100);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!audioDevice.isFormatSupported(audioFormat)) {
|
if (!audioDevice.isFormatSupported(audioFormat)) {
|
||||||
qCWarning(audioclient) << "The native format is" << audioFormat << "but isFormatSupported() failed.";
|
qCWarning(audioclient) << "The native format is" << audioFormat << "but isFormatSupported() failed.";
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue