Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.9.0 Beta 3
-
None
-
iOS 7, Qt 5.4.1, xCode 6.1
Description
When using QAudioOutput on iOS then the volume is hardly audible when played with the phone's speaker. The volume is ok when played on headphones.
Sample code:
QAudioFormat format; format.setSampleRate(sampleRate); format.setChannelCount(2); format.setSampleSize(16); format.setCodec("audio/pcm"); format.setByteOrder(QAudioFormat::LittleEndian); format.setSampleType(QAudioFormat::SignedInt); m_audioOutput = new QAudioOutput(format, this); m_audioOutput->setNotifyInterval(10); m_audioOutput->setVolume(1.0); QFile* f = new QFile("sample.wav"); f->open(QFile::ReadOnly); m_audioOutput->start(f);
The same works fine on other systems such as Android, or Windows.