954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

audio conference problem ( merge sound buffers )

if chat room members is 4 and each have mic
the server receive the 4 packets and resend it in the same order
here more delay in the client to run packet 1 and 2 .....
i want to merge the sound and send it
to be in the real time
how to merge more than sound buffer in one buffer????
and how to get the sound loud (pcm format)????
thanks again

dev.mena
Newbie Poster
3 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

Are you really sure that this is a problem? Processing buffers at the server will take negligible time compared to the transmission times to the clients. Unless you are using some kind of broadcast technology the data still has to be sent to each client, so where will you reduce delay significantly?
It's always a mistake to start optimising an application before you have identified a definite problem.

What exactly is the requirement for "loud"? The format in which the sound is encoded will not affect how loud it is.

JamesCherrill
Posting Genius
Moderator
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
 

thanks for reply
"It's always a mistake to start optimising an application before you have identified a definite problem."
ok you are right

i made an application that send and receive the sound using UDP what i really need now to loud it as possible
and using filters like echo and noise filter and so on
if u can help me please do it
thanks again

dev.mena
Newbie Poster
3 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

For sound processing like echo etc you'll need to get into the Java Sound API in some detail. This http://www.developer.com/java/other/article.php/1565671 is a good starting place

JamesCherrill
Posting Genius
Moderator
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You