mirror of
https://github.com/danog/libtgvoip.git
synced 2024-12-02 09:37:52 +01:00
Changed opus signal type to music, increased size of outgoing packet buffer
This commit is contained in:
parent
5b3248482e
commit
b6b40ac70a
@ -16,7 +16,7 @@ tgvoip::OpusEncoder::OpusEncoder(MediaStreamItf *source):queue(11), bufferPool(9
|
||||
opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY(10));
|
||||
opus_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(15));
|
||||
opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(1));
|
||||
opus_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_VOICE));
|
||||
opus_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_MUSIC));
|
||||
opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_FULLBAND));
|
||||
requestedBitrate=32000;
|
||||
currentBitrate=0;
|
||||
|
@ -161,7 +161,7 @@ VoIPController::VoIPController() : activeNetItfName(""),
|
||||
proxyAddress(""),
|
||||
proxyUsername(""),
|
||||
proxyPassword(""),
|
||||
outgoingPacketsBufferPool(1024, 20){
|
||||
outgoingPacketsBufferPool(1024, 64){
|
||||
seq=1;
|
||||
lastRemoteSeq=0;
|
||||
state=STATE_WAIT_INIT;
|
||||
@ -276,6 +276,7 @@ VoIPController::~VoIPController(){
|
||||
sendQueue->Put(PendingOutgoingPacket{0});
|
||||
if(openingTcpSocket)
|
||||
openingTcpSocket->Close();
|
||||
|
||||
LOGD("before join sendThread");
|
||||
join_thread(sendThread);
|
||||
LOGD("before join recvThread");
|
||||
|
Loading…
Reference in New Issue
Block a user