Hi All. Trying to play sound. Seems to load the file ok but cannot hear playback. App is not muted and I can hear the playback from Windows directly. I have included the Audio.hpp and it can find the flac file. I tried .wav file but again, no sound. Everything else from SFML works ok. Source code is ...
sf::SoundBuffer shootBuffer;
if (!shootBuffer.loadFromFile("shoot.flac"))
{
return -1;
}
else
{
sf::Sound shoot;
shoot.setBuffer(shootBuffer);
shoot.play();
}
Any clues? Much appreciated as always.
Moon.