I have created project to check music(is it working or what ever). I loaded two musics from project file, first i play one music then in play second music , and there is strange sound playing, pls help. sorry for my english.
#include <iostream>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
using namespace std;
int main()
{
sf::Music Pocetak;
if(!Pocetak.OpenFromFile("marioprvizvuk.ogg"))return 1;
sf::Music Nastavak;
if(!Nastavak.OpenFromFile("mariodrugizvuk.ogg"))return 1;
int e=1;
Pocetak.Play();
for(int i=1;i<=10000000;i++){}
while(e)
{
Nastavak.Play();
}
return 0;
}