Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Play the same sound twice  (Read 4862 times)

0 Members and 2 Guests are viewing this topic.

andreaszdw

  • Newbie
  • *
  • Posts: 26
    • View Profile
Play the same sound twice
« 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.?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Play the same sound twice
« Reply #1 on: September 01, 2009, 08:36:29 am »
I'm sorry but I don't understand your question.
Laurent Gomila - SFML developer

andreaszdw

  • Newbie
  • *
  • Posts: 26
    • View Profile
Play the same sound twice
« Reply #2 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Play the same sound twice
« Reply #3 on: September 01, 2009, 11:21:07 am »
Yes, with two sf::Sound instances.
Laurent Gomila - SFML developer