Windows 7 update messing with SDL2_mixer? |
Christian Knudsen
|
Also, if I start the game with headphones unplugged, plugging in the headphones doesn't seem to do anything -- it just keeps playing through the laptop speakers.
|
|||||||||||
|
Christian Knudsen
|
Found an old version of my game that uses SDL 1.2.14 and SDL_mixer 1.2.12 and it doesn't have this problem.
|
|||||||||||
|
Christian Knudsen
|
Well, updating my audio driver fixed the headphone issue. There's still an issue with high frequencies getting a sharp/hissy tinge to them that I don't get in the older game version that uses SDL 1.2.
|
|||||||||||
|
Christian Knudsen
|
Setting audio to 44100 Hz instead of 22050 seems to have fixed the sharp/hissy tinge issue. But all my wavs are 22050, so I guess SDL2_mixer just doesn't handle being set to 22050 very well?
|
|||||||||||
|
Windows 7 update messing with SDL2_mixer? |
eric.w
|
Hi,
I encountered something similar with 11025Hz audio. It turned out to be a bug either in the SDL2 XAudio2 code, or in XAudio2 itself, which I filed here: https://bugzilla.libsdl.org/show_bug.cgi?id=2551 Basically, the resampling done by XAudio2 is unusably bad. Can you see if SDL_AudioInit("winmm") or SDL_AudioInit("directsound ") fixes the issue, in which case it's likely the same bug as I was hitting? IMO, one fix could be, SDL2 could blacklist the XAudio2 driver if it's going to have to do any resampling, and fall back to winmm/directsound. On Tue, Mar 10, 2015 at 10:08 AM, Christian Knudsen wrote:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
Re: Windows 7 update messing with SDL2_mixer? |
Christian Knudsen
|
Yup, both of these fixed the issue. I'm not getting any distortion at 22050 Hz now. With winmm there was a 1-2 second audio delay, so that wasn't really usable, but directsound seems to work perfect. So I can just use that without any problems? |
|||||||||||||
|
Windows 7 update messing with SDL2_mixer? |
eric.w
|
On Tue, Mar 10, 2015 at 2:10 PM, Christian Knudsen wrote:
I'm not sure to be honest, but I assume it's safe, SDL1.2 only had waveout and directsound.Here are the docs for the SDL_AudioInit function: https://wiki.libsdl.org/SDL_AudioInit?highlight=%28%5CbCategoryAudio%5Cb%29%7C%28CategoryEnum%29%7C%28CategoryStruct%29 |
|||||||||||||
|