This commit is contained in:
laurentgom 2009-04-10 14:13:15 +00:00
parent e9d7547593
commit 364b0ae9b1

View File

@ -18,8 +18,6 @@ void PlaySound()
if (!Buffer.LoadFromFile("datas/sound/footsteps.wav"))
return;
sf::SoundBuffer b2 = Buffer;
// Display sound informations
std::cout << "footsteps.wav :" << std::endl;
std::cout << " " << Buffer.GetDuration() << " sec" << std::endl;
@ -27,7 +25,7 @@ void PlaySound()
std::cout << " " << Buffer.GetChannelsCount() << " channels" << std::endl;
// Create a sound instance and play it
sf::Sound Sound(b2);
sf::Sound Sound(Buffer);
Sound.Play();
// Loop while the sound is playing