Fix issue with 16khz audio output crackles
This commit is contained in:
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…
x
Reference in New Issue
Block a user