mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for bug #251, refine the mic algorithm. 2.0.63
This commit is contained in:
parent
d53fd7f570
commit
330819fb74
5 changed files with 140 additions and 151 deletions
|
@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
// current release version
|
||||
#define VERSION_MAJOR 2
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 61
|
||||
#define VERSION_REVISION 63
|
||||
// server info.
|
||||
#define RTMP_SIG_SRS_KEY "SRS"
|
||||
#define RTMP_SIG_SRS_ROLE "origin/edge server"
|
||||
|
|
|
@ -97,13 +97,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
// the default config of mw.
|
||||
#define SRS_PERF_MW_SLEEP 350
|
||||
/**
|
||||
* how many msgs can be send entirely.
|
||||
* for play clients to get msgs then totally send out.
|
||||
* for the mw sleep set to 1800, the msgs is about 133.
|
||||
* @remark, recomment to 128.
|
||||
*/
|
||||
#define SRS_PERF_MW_MSGS 128
|
||||
/**
|
||||
* use iovs cache in each msg,
|
||||
* for the shared ptr message, we calc once and used for every copy.
|
||||
* @see https://github.com/winlinvip/simple-rtmp-server/issues/251
|
||||
|
@ -111,6 +104,18 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
* @remark when reload change the chunk size, previous clients error.
|
||||
*/
|
||||
#undef SRS_PERF_MW_MSG_IOVS_CACHE
|
||||
/**
|
||||
* how many msgs can be send entirely.
|
||||
* for play clients to get msgs then totally send out.
|
||||
* for the mw sleep set to 1800, the msgs is about 133.
|
||||
* @remark, recomment to 128.
|
||||
* @remark, when mic enabled, use larger iovs cache, to 512.
|
||||
*/
|
||||
#ifndef SRS_PERF_MW_MSG_IOVS_CACHE
|
||||
#define SRS_PERF_MW_MSGS 128
|
||||
#else
|
||||
#define SRS_PERF_MW_MSGS 512
|
||||
#endif
|
||||
|
||||
/**
|
||||
* whether set the socket send buffer size.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue