Skip to content

Commit

Permalink
wasapi: Favor the system resampler again, for now.
Browse files Browse the repository at this point in the history
Reference Issue libsdl-org#5538.
(cherry-picked from commit 85aa9b8)
  • Loading branch information
icculus authored and sezero committed Nov 17, 2022
1 parent 8bae1a0 commit c599b77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/audio/wasapi/SDL_wasapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,10 @@ WASAPI_PrepDevice(_THIS, const SDL_bool updatestream)
return WIN_SetErrorFromHRESULT("WASAPI can't determine minimum device period", ret);
}

#if 1 /* we're getting reports that WASAPI's resampler introduces distortions, so it's disabled for now. --ryan. */
/* we've gotten reports that WASAPI's resampler introduces distortions, but in the short term
it fixes some other WASAPI-specific quirks we haven't quite tracked down.
Refer to bug #6326 for the immediate concern. */
#if 0
this->spec.freq = waveformat->nSamplesPerSec; /* force sampling rate so our resampler kicks in, if necessary. */
#else
/* favor WASAPI's resampler over our own */
Expand Down

0 comments on commit c599b77

Please sign in to comment.