Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAUDIO: Add support for sample rates >65kHz. #348
Conversation
|
I have a feeling that you may be losing precision. Did you consider employing a running average instead of silently throwing the samples out? |
|
Yes, this is losing precision, and although it's not audible with my test case, it's not a nice solution.. After some more consideration I think a better solution might be to just reduce the accuracy of the interpolation of the linear converter slightly (to 15-bit precision). I'll update this pull request with that alternative later. |
|
This new commit (reducing the fractional bits used in the rate code to 15) works fine for my test case, and I think/hope it's fine, although we should sync up the ARM code too. |
|
Looks fine now. |
|
Looks fine to me too. But I would rename the pull request before merging it. The "hack" bit could be a confusion source later on. |
|
@fuzzie Do you think we should fix the ARM code before merging this or afterwards? |
|
IMHO, adapting the ARM code could be done afterwards. I mean, there's no reason to hold this working solution in queue while waiting for someone to adapt the other relevant ARM code |
|
fuzzie wants to have the ARM code fixed first. I think that makes sense since it avoids any chances of the ARM code being forgotten. Furthermore, this change is only needed for code not in-tree. Thus, delaying the merge is really no issue at all. |
|
Just a note: This is needed by the Wintermute game Shaban, which is trying to use a 96000Hz sample |
|
Any news on this? |
|
This is now needed for the Wintermute game "Helga Deep in Trouble". See: Will take a look at the required ARM asm changes. |
|
Have made the required changes as far as I understand them... based on comparing fuzzie's changes and applying them across to the ARM code. Totally untested, so any review of the changes is good... If these can get incorporated and tested, then we can merge and close this: |
|
@fuzzie Could you cherry pick digitall@9003ce5 on top of your Pull Request branch and then deal with the FIXME @bluegr indicates please? :) |
|
I've just talked with Robin Watts, who wrote the ARM code, and he said that @digitall's changes are OK. The different value in the ARM code was added by him in commit b9c8c6c. That value is holding a rounding bit, and he said that this could be changed to 16384, but it's way too small for anyone to hear a difference. |
|
@bluegr : Thanks for spending the time to review this. Hopefully now fuzzie can cherry pick, deal with the FIXME and we can merge! :) |
|
@fuzzie : What is the status of this? If you are busy, if you add me as a contributer on this branch, I will do the change myself so this can get merged. |
|
@digitall, could you please issue new pull request based on your branch, and we merge it and close this PR? |
|
Thanks both. We can discuss further in PR #625 if needed (but I don't think we need to). |
fuzzie commentedJun 30, 2013
This is needed for 96kHz ogg files in the AGS game The Blackwell Legacy (1.7).
The ARM code isn't updated by this yet.