sound processing in VC++ Visual Studio

  • Thread starter Thread starter Peadar O'Colmain
  • Start date Start date
P

Peadar O'Colmain

Guest
Hello from Ireland. I'm trying to receive and send some voice in Visual Studio to write a chatroom (Skype style) and I'm having a real nasty. I'd like to know if anyone has run into the same issue or has any suggestions. I call the WaveOutOpen command and that calls a callback function which I use to do whatever (I'm actually using it to send voice to another computer through a holepunch socket). That works. I have it running in a thread.

If I listen on a socket in another thread, the callback function (above) is no longer called.

It works if I have the waveoutopen in the foreground but that's not much use. If I have them both in threads, then I just listen on a socket with a recvfrom or even a select command and the waveopen no longer calls its callback. This is live voice but I get the same symptoms if I am processing a file. It seems that VC++ in windows cannot listen for sound on one thread and process sound from a mike or file on another thread. Any suggestions anyone? Peadar

Continue reading...
 
Back
Top