From 364b0ae9b1eccffc57b8d544aa57d9766712d093 Mon Sep 17 00:00:00 2001 From: laurentgom Date: Fri, 10 Apr 2009 14:13:15 +0000 Subject: [PATCH] git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1075 4e206d99-4929-0410-ac5d-dfc041789085 --- samples/sound/Sound.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/sound/Sound.cpp b/samples/sound/Sound.cpp index 079057a12..982eb99cd 100644 --- a/samples/sound/Sound.cpp +++ b/samples/sound/Sound.cpp @@ -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