Hello everyone,
I'm trying to play a simple .wav sound using the minimal code shown bellow. It plays fine, however the quality of the sound being played by the application, sounds significantly worse in quality when compared to the original.
It's hard to describe but it sounds like it's missing some frequencies or like really bad quality like a 12kbps mp3 sound. I know this explanation is really daft and I which I could record it or show it somehow.
Also, this doesn't seem to happen with all sounds. Only on sounds with 1 channel or mono but I'm not very sure. If someone could give me a hint I'd be thankful.
Here's my minimal code:
#include <SFML/Audio.hpp>
int main()
{
sf::SoundBuffer sb;
sb.loadFromFile("engine.wav");
sf::Sound sound;
sound.setBuffer(sb);
sound.play();
while(sound.getStatus() == sf::Sound::Playing)
{}
return 0;
}
Here's engine.wav from the example: https://dl.dropbox.com/u/8365167/engine.wav
And here's a 2 channel .wav that seems to play just fine: https://dl.dropbox.com/u/8365167/se_powerup.wav
Best regards, and thanks again.