Skip to content

WASAPI: Audio distortion 22kHz #5538

@glebm

Description

@glebm

The WASAPI audio backend introduces distortion when resampling from 22 kHZ.

if (this->spec.freq != waveformat->nSamplesPerSec) {
streamflags |= (AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM | AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY);
waveformat->nSamplesPerSec = this->spec.freq;
waveformat->nAvgBytesPerSec = waveformat->nSamplesPerSec * waveformat->nChannels * (waveformat->wBitsPerSample / 8);
}

Spectrogram recorded by @ikonomov:

Spectrogram

Original report and more details: diasurgical/DevilutionX#1390

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions