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

Author Topic: SFML_LIVE_AUDIO  (Read 2638 times)

0 Members and 1 Guest are viewing this topic.

rgrant1993

  • Newbie
  • *
  • Posts: 12
    • View Profile
SFML_LIVE_AUDIO
« on: June 03, 2013, 10:50:52 pm »
I have been trying this for days. I need to capture the live stream of the audio being recorded. Could someone point me in the correct direction for this? Please, hurry as i am VERY obsessive over programming.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML_LIVE_AUDIO
« Reply #1 on: June 03, 2013, 10:59:06 pm »
Laurent Gomila - SFML developer

rgrant1993

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: SFML_LIVE_AUDIO
« Reply #2 on: June 03, 2013, 11:00:47 pm »
Lol, i obviously looked at the documentation. I found no possible solution.
to be more specific, i need a way to put the sf::Record contents inside the sf:sound play function without having to call record.stop().

A sloppy solution i found was by continuously ending and starting the record with the play function in the center but the function was to slow, and cause a {poof} sound from the speakers every time the loop finished.
« Last Edit: June 03, 2013, 11:06:18 pm by rgrant1993 »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML_LIVE_AUDIO
« Reply #3 on: June 04, 2013, 08:10:21 am »
Quote
Lol, i obviously looked at the documentation. I found no possible solution.
to be more specific, i need a way to put the sf::Record contents inside the sf:sound play function without having to call record.stop().
If you don't explain what you want to do, we won't be able to help you. You didn't say in your first post that you wanted to play the recorded sound, you only talked about capturing it.

What you must do is to implement your own SoundRecorder and your own SoundStream, and make the former feed the latter. Take a look at the VoIP SFML example, it does something similar -- just remove the network layer.
Laurent Gomila - SFML developer

 

anything