-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
The WASAPI audio backend introduces distortion when resampling from 22 kHZ.
SDL/src/audio/wasapi/SDL_wasapi.c
Lines 562 to 566 in 01b14e1
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:
Original report and more details: diasurgical/DevilutionX#1390
qndelericoporto
Metadata
Metadata
Assignees
Labels
No labels