We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 396 - SDL_mixer documentation does not warn about sample rate.
Summary: SDL_mixer documentation does not warn about sample rate.
Status: RESOLVED DUPLICATE of bug 58
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86 Other
: P2 trivial
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-21 11:08 UTC by Nicos
Modified: 2007-02-22 02:23 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicos 2007-02-21 11:08:22 UTC
SDL_mixer does not upsample when the chunk sample rate < output sample rate but it incorrectly plays the sample with the output sample rate (from what I can hear). I realize that you might not want to support upsampling but at least it should be mentioned in the documentation and/or make Mix_PlayChannelTimed return an error in this case.
Comment 1 Ryan C. Gordon 2007-02-22 02:23:26 UTC
It supports upsampling if the sample rates are multiples (so it can do 11025 to 22050 or 44100, but not 8000 to 11025).

The cause of this issue is actually a bug in SDL and not SDL_mixer, which incorrectly resamples the audio without reporting an error.

As such, I'm marking this bug as a duplicate of that issue.

--ryan.



*** This bug has been marked as a duplicate of 58 ***