The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Xaudio2 - distortion at <44100Hz sample rates
eric.w


Joined: 12 Feb 2014
Posts: 38
Hey Ryan,I was wondering if you could give the "loopwave" test in SDL2 a quick run with the Xaudio2 backend, and see if you hear this distortion I'm getting [1].


There's a bug report I made some more details:

https://bugzilla.libsdl.org/show_bug.cgi?id=2551




I thought maybe it was just my PC, but I'm concerned because I reproduced it on a few different computers today. (Windows 8 and 8.1, Realtek and AMD audio.)   The only explanation I can think of is Xaudio2 is using a very low quality (linear or nearest-neighbour) resampler for upsampling.

Thanks,
Eric




[1] Here's an MP3 of what it sounds like to me: https://bugzilla.libsdl.org/attachment.cgi?id=2090

The distortion sounds like static or clipping, and it's not present when playing the sample.wav with a normal media player or an SDL2 backend other than Xaudio2.
Xaudio2 - distortion at <44100Hz sample rates
Ryan C. Gordon
Guest

Quote:
There's a bug report I made some more details:
https://bugzilla.libsdl.org/show_bug.cgi?id=2551

I've marked the bug for triage for 2.0.4, so we'll try to get some
solution in there before we ship the next release.

--ryan.



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org