Click here to Skip to main content
15,920,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys....I am New to socket programming ...I am developing one VC++ MFC based socket programming for voice...I am using Wave Waveform API....Here i am using only one HEADER..I am going to send real time voice continously through socket...as i using only one buffer it will get full with in 5 sec or less then it will start playing the buffer once it get full.....now i want to create two buffer so that if one get full the other will be in recording but i don't know how to write it ....problem with one buffer is gap in receiving side....so pls help me in this ...Thanks to all in advance for ur valuable comments....
Posted

1 solution

What gap in receiving side? There is no gap if you're sampling and transmitting at a higher rate than the voice is occurring (which shouldn't be a problem). Your question isn't all that clear, you should be able to just create a buffer at the receive end and keep filling it as the data comes in. If you make it dynamic (instead of fixed size), it should be able to keep up with voice data anyway.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900