how to send a Sound Buffer through Socket
hi
i m building voice conversation application .
now i want to send SoundBuffer (of Directx) via Socket to my server.
how can i send it .. will it be lose its data .
plz help mee
thanx
Your post is bordering on unreadable, and is way past unanswerable.
Try fixing up your grammer and spelling to begin with.
Try fixing up your grammer and spelling to begin with.
Sound recordings you make on a computer can be very high-quality. Unfortunately, it''s not possible to send really high-quality sound as fast as it can be recorded, so it has to be compressed somehow first. There are a lot of audio compressors that have been invented, with different tradeoffs in speed and quality. HawkVoice is one example, and if I remember DirectPlay has a voice chat feature built in. So really, before you can send the data at all, you need to find a way to compress it so it''s smaller. I hope that points you in the right direction.
January 29, 2004 11:51 PM
Compression is not needed to start with since you can easily use the localhost to get it up and running then add in compression once you are sure it works (it should work fine on a lan also without compression). Another bandwidth saving feature is a silence threshold (when someone is not talking dont send anything) which can easily reduce the number of packets if you are doing voice comm.
Copy the soundbuffer data to a packet, and send the packet. You will need additional information in the packet to reconstruct the soundbuffer on the other side.
Yes you can lose data depending on whether you use tcp or udp. If you want real time communication then use udp, but you can lose data since its unreliable.
Copy the soundbuffer data to a packet, and send the packet. You will need additional information in the packet to reconstruct the soundbuffer on the other side.
Yes you can lose data depending on whether you use tcp or udp. If you want real time communication then use udp, but you can lose data since its unreliable.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement