SFML community forums

Help => Audio => Topic started by: andreaszdw on September 01, 2009, 08:35:10 am

Title: Play the same sound twice
Post by: andreaszdw on September 01, 2009, 08:35:10 am
I play a sound, while the sound plays, I will start it again to play. The playing sound should play on. Is this possible with one sound.?
Title: Play the same sound twice
Post by: Laurent on September 01, 2009, 08:36:29 am
I'm sorry but I don't understand your question.
Title: Play the same sound twice
Post by: andreaszdw on September 01, 2009, 09:07:53 am
I play a sound, this sound has a duration of 3 seconds. After playing 1 second I will play the same sound again, but I want that the first sound play to the end of 3 seconds, but the second sound starts while the first is playing. If I do this with sf::Sound.Play(), the first sound is not played to the end.

Is this possible?
Title: Play the same sound twice
Post by: Laurent on September 01, 2009, 11:21:07 am
Yes, with two sf::Sound instances.