Advertisement

streaming sound data through the network

Started by September 28, 2002 12:11 AM
1 comment, last by patmoa 22 years, 4 months ago
Hi, I''m just a beginner in networking... I just want to stream high quality sound data over the network with the least latency possible and I was wondering if there were a particular method to do that. I''m recording sound with DirectSound... My idea is to make packets of 10ms sound data, send them one by one... But the packets might not arrive in the right order, or might not arrive at all. So, I''ll have to take care of that... I''m currently using DirectPlay to send data, is it appropriate for this task ? Did I forget something ? By the way, does anyone know where I can find tutorials or sample codes about streaming data over the network ? Thank you in advance...
DirectPlay allows you to send guaranteed packets which means they will all arrive and in order. You''ll need to use some form of compression for your sound data (don''t know if DirectSound already has this?) because theres no way you are going to stream high-quality sound in real time without compressing it or using a reeeeeally fast line.
As for the amount of data to send at a time, i''d be going for a slightly larger number, just to try and reduce the number of packets...but i''ve never actually done this so don''t take my word for it
Advertisement
Thanks for the advice.
In fact, the system will be used on the LAN (100 Mbps).
It will enable up to 32 participants to talk each other, during a game play on Unreal Tournament or UT2003 for example.
The quality must be good (better than telephone) and the latency must be very low.
The system will take the 3D positions into account. But that's not really the problem.
Is it a too ambitious project ?
DirectPlay Voice has all these features but the quality is not good enough.
I think it is no use to record voice at a higher frequency than 11kHz or 22kHz.
So, 22050Hz*16bits*32players=11,2 Mbits for one second recording...
Is it the right method to caculate the bandwidth requirement ?
What codec should be used to have good sound quality ?
Is it too high ?
I hope not...
Please tell me if I'm wrong...
Any other advice will be useful
Thanks

[edited by - patmoa on October 2, 2002 6:14:13 PM]

[edited by - patmoa on October 2, 2002 6:32:44 PM]

This topic is closed to new replies.

Advertisement