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

Author Topic: real time sound problem  (Read 2585 times)

0 Members and 1 Guest are viewing this topic.

pridefight

  • Newbie
  • *
  • Posts: 10
    • View Profile
real time sound problem
« on: January 09, 2012, 03:48:44 pm »
i'm doing a fighting game, i wanna make the fighter scream every time he delivers a punch, so i tried sf::music and also tried sf::sound, to make the small ogg file played every time he delivers a punch, but  then comes a problem, the sound is not very clear, and when it played, it drops the framerate a little bit, as a  fighting game has a very high real time requirements on every move,  this is unacceptable, so i'm here to ask if any one of you has such experience. by the way, i even tried with threads, but no help at all.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
real time sound problem
« Reply #1 on: January 09, 2012, 03:53:39 pm »
Please show your code.
Laurent Gomila - SFML developer

 

anything