Hello,
When we create a buffer using WASAPI in shared mode, we can't choose the sampling rate and number/setup of speaker. For example if Windows is setup to use 48Khz audio (or maybe the first application to initialize WASAPI requested 48Khz) and my game/application request a 44.1Khz waveformat (because it's source audio is at that frequency), WASAPI initialization will return a 48Khz buffer, which requires me to do the resampling before submitting.
Is there a way to either force WASAPI (in shared mode) to return a buffer in the requested format, or to re-sample on the fly when I submit data ? If not, does anyone know a single header library to do audio resampling ?