-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sdl_mixer can't resample 48k sound files #72
Comments
The ogg vorbis speech files are 48k, which was the frequency rate of sdl_mixer before the patch. Might have to go through all sound loaders and make sure they match the mixer sample rate? |
I added code to dump the decoded wav data for the voice samples in SDLSoundSystem::KoePlayImpl(); right after we've decoded the ogg vorbis data into a raw wav file. The data, when played from mplayer on the command line, sounds fine. But in rlvm, the voice sample is tone shifted down. |
Apparently sdl_mixer has known issues dealing with audio samples that aren't a multiple of 11025hz (11025hz, 22050hz, 44100hz), and doesn't have proper resampling. References: So it shouldn't be a surprise that the 48khz ogg files aren't being played properly. |
Jagarl had some sort of workaround for the 48k to 44.1k problem:
This is done immediately after (The extreme fix is ripping out the entire sdl_mixer based sound system as it exists and move...to something else? That would be a lot of work for a new pile of new, non-real world hardened, hard to test code.) |
This doesn't fix the real problem with GH-72, but it does paper over it enough so that we can release.
While trying to fix a different audio issue, 691a70f broke the pitch of voices in Clannad. There's probably multiple things to work out here.
The text was updated successfully, but these errors were encountered: