Hi at all! I'm trying to add sounds into my game, but I am getting into troubles.
I am currently using Irrlicht, and I know I can't mix these two engines without problems, but I want only to play audio (and maybe networking, later)!!!
I followed this guide (I am using Visual Studio 2017):
https://www.sfml-dev.org/tutorials/2.5/start-vc.phpI linked against these SFML libraries (Debug config):
sfml-system-d.lib
sfml-audio-d.lib
openal32.lib
flac.lib
vorbisenc.lib
vorbisfile.lib
vorbis.lib
ogg.lib
But no sounds comes out of my game when I copy-paste this code:
sf::SoundBuffer buffer;
if (!buffer.loadFromFile("sounds/select.ogg"))
return;
sf::Sound sound;
sound.setBuffer(buffer);
sound.setLoop(true);
sound.play();
No errors appear in console. Where is the problem?
Thanks in advance!!