Fix issue with 16khz audio output crackles

pull/10/head
michal.szwaj 2018-02-15 21:20:23 +01:00
parent 98ceafff30
commit e76aee2da8
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ void AudioOutput::createAudioOutput()
{ {
OPENAUTO_LOG(debug) << "[AudioOutput] create."; OPENAUTO_LOG(debug) << "[AudioOutput] create.";
audioOutput_ = std::make_unique<QAudioOutput>(QAudioDeviceInfo::defaultOutputDevice(), audioFormat_); audioOutput_ = std::make_unique<QAudioOutput>(QAudioDeviceInfo::defaultOutputDevice(), audioFormat_);
// Default volume level (max) produces crackles
audioOutput_->setVolume(static_cast<qreal>(0.90));
} }
bool AudioOutput::open() bool AudioOutput::open()