Home > Back-end >  Internet radio program voice and data sending and receiving rate matching problem
Internet radio program voice and data sending and receiving rate matching problem

Time:10-27

Recently had a Internet radio program, have a voice and data sending and receiving rate matching problem, want to ask you have any good solution,
Requirements:
Do a Internet radio program, that is, choose the music files on the sender computer, broadcast on playback end machine,

The whole process I think should be like this:
The sender reading music files - & gt; The network to send
Receive the network data playback end - & gt; Deposited in the receive buffer - & gt; Play
Due to the client machine is single chip microcomputer, the receive buffer size is limited, so if the sender transmission speed too fast, the receive buffer is likely, to voice may appear covering phenomenon, if the sender transmission speed too slow, the receive buffer may be in a deficit state, thus speech pause phenomenon may occur,

Now need to discuss is to determine a method, make the rate of sending and receiving ends to match, namely the receive buffer won't appear deficit and overflow condition all the time,

Hope the friend that experienced guidance,

CodePudding user response:

The receiving end after receiving packets, send back a buffer state, the sender can adjust the sending rate according to the status value

CodePudding user response:

reference 1st floor dataxdata response:
receiving end after receiving packets, send back a buffer state, the sender can adjust the sending rate according to the status value

Because the server is one-to-many, if every client return status, to handle will have trouble ah, and there is no other way

CodePudding user response:

In the case of a one-to-many broadcast, if every client performance is uneven, can only be based on the lowest performance client sent

CodePudding user response:

This kind of situation is usually the client set up a buffer, buffer play again after certain data, such matching speed as far as possible
  • Related