Hello,
everybody.
I use the following code
sf::SoundBuffer SB;
SB.loadFromFile("Sounds\\Richtig.ogg");
sf::Sound Sound(SB);
Sound.play();
One time I use it in the main loop of my application the other time in a function of one of my classes. Both use the exact same for lines of code. The problem is the sound in the main loop is played correctly. In my class function I don't hear anything. I checked the return value of
SB.loadFromFile("Sounds\\Richtig.ogg");
and shows me no problem. But still I can't hear any sound. Does somebody know the
reason for that?
Best regards
Lurnon