16
Audio / Re: Music.openFromStream fails: Failed to set 44100hz, got 48000hz
« on: March 11, 2015, 09:56:22 pm »Well the majority of the audio module has been rewritten to remove libsndfile as such there might well be an issue on the current master.
Can you provide the ogg file?
It's orchestra.ogg from the sound example in the SFML examples folder, though I can recreate it by converting to an MP3 file as well, and in the code that I found this issue in originally WAV files from loading SoundEffects from a stream also falls down.
Porting to a FLAC file via Audacity, interestingly, does seem to work. So this stands as a temporary fix for me, but obviously not ideal.
Commenting out the openFromStream logic logs:
Quote
Starting...
AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead
AL lib: (EE) GetHrtf: Incompatible format: Stereo 48000hz
Done
And the AL lib stuff still gets logged if commenting out the stream loading, so I suspect it's a red-herring and it's the stream reading logic that falls down (Graphics still load from streams correctly).