Disable SIP->Mumble channel.
This commit is contained in:
parent
2bd1ba3fd2
commit
690f95820c
@ -112,7 +112,7 @@ mumble::MumbleCommunicator::~MumbleCommunicator() {
|
|||||||
|
|
||||||
void mumble::MumbleCommunicator::loop() {
|
void mumble::MumbleCommunicator::loop() {
|
||||||
|
|
||||||
senderThread.reset(new std::thread(&MumbleCommunicator::senderThreadFunction, this));
|
//senderThread.reset(new std::thread(&MumbleCommunicator::senderThreadFunction, this));
|
||||||
|
|
||||||
while (!quit) {
|
while (!quit) {
|
||||||
int status = mumble_tick(mumble);
|
int status = mumble_tick(mumble);
|
||||||
|
@ -194,7 +194,10 @@ pj_status_t sip::PjsuaCommunicator::mediaPortGetFrame(pjmedia_frame *frame) {
|
|||||||
if (availableSamples < count) {
|
if (availableSamples < count) {
|
||||||
callbackLogger.debug("Requested %d samples, available %d, filling remaining with zeros.", count,
|
callbackLogger.debug("Requested %d samples, available %d, filling remaining with zeros.", count,
|
||||||
availableSamples);
|
availableSamples);
|
||||||
std::memset(&(samples[availableSamples]), 0, sizeof(pj_int16_t) * (count - availableSamples));
|
|
||||||
|
for (int i = samplesToRead; i < count; ++i) {
|
||||||
|
samples[i] = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return PJ_SUCCESS;
|
return PJ_SUCCESS;
|
||||||
|
2
main.cpp
2
main.cpp
@ -18,7 +18,7 @@ int main(int argc, char *argv[]) {
|
|||||||
log4cpp::Appender *appender1 = new log4cpp::OstreamAppender("console", &std::cout);
|
log4cpp::Appender *appender1 = new log4cpp::OstreamAppender("console", &std::cout);
|
||||||
appender1->setLayout(new log4cpp::BasicLayout());
|
appender1->setLayout(new log4cpp::BasicLayout());
|
||||||
log4cpp::Category &logger = log4cpp::Category::getRoot();
|
log4cpp::Category &logger = log4cpp::Category::getRoot();
|
||||||
logger.setPriority(log4cpp::Priority::NOTICE);
|
logger.setPriority(log4cpp::Priority::INFO);
|
||||||
logger.addAppender(appender1);
|
logger.addAppender(appender1);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user