| Summary: | Resampler introduces noise | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Trent Gamblin <trent> |
| Component: | audio | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | Keywords: | target-2.0.6 |
| Version: | HG 2.0 | ||
| Hardware: | x86 | ||
| OS: | Windows (All) | ||
|
Description
Trent Gamblin
2017-06-03 20:47:01 UTC
(Sorry if you get a lot of copies of this email, we're touching dozens of bug reports right now.) Tagging a bunch of bugs as target-2.0.6. This means we're in the final stretch for an official SDL 2.0.6 release! These are the bugs we really want to fix before shipping if humanly possible. That being said, we don't promise to fix them because of this tag, we just want to make sure we don't forget to deal with them before we bless a final 2.0.6 release, and generally be organized about what we're aiming to ship. After some debate, we might just remove this tag again and deal with it for a later release. Hopefully you'll hear more about this bug soon. If you have more information (including "this got fixed at some point, nevermind"), we would love to have you come add more information to the bug report when you have a moment. Thanks! --ryan. I've replaced the resampler with a better one, which should resolve this problem. https://hg.libsdl.org/SDL/rev/a8382e3d0b54 --ryan. I tested Mercurial with the original problem and it sounds good now. Thanks! Sorry about this but my test was flawed. I was creating the stream with the same sampling rate as the device. When they are different I still hear a lot of high pitched noise that isn't there with SDL 2.0.5. Perhaps I can send you some code that exhibits the problem. Looks like my checkout isn't updated... I'm not familiar with Mercurial. I did an 'hg pull' but I don't have the changes. Guess I'll just trust that it will be OK. (In reply to Trent Gamblin from comment #5) > Looks like my checkout isn't updated... I'm not familiar with Mercurial. I > did an 'hg pull' but I don't have the changes. Guess I'll just trust that it > will be OK. Hg pull gets new data from the server. "hg update" then takes that data and merges it into your local source code with it. --ryan. Thanks for that. After getting the updates I tested again. The original problem is gone. There was a new problem in that there were some crackles/pops. However using a smaller buffer (not larger, as I tried first) fixes it. I've tested the new code on two PCs. Using a small buffer helps but there is still a lot of noise on wasapi (not the same kind of noise as the original bug) compared to directsound. It's more of a crackling/popping similar to a unfilled buffer every few moments. Probably best to open a new bug though. |