mirror of https://github.com/f1xpl/openauto.git
Fix issue with 16khz audio output crackles
parent
98ceafff30
commit
e76aee2da8
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue