Disable SIP->Mumble channel.

This commit is contained in:
Michał Słomkowski 2015-10-16 23:33:23 +02:00
parent 2bd1ba3fd2
commit 690f95820c
3 changed files with 6 additions and 3 deletions

View File

@ -112,7 +112,7 @@ mumble::MumbleCommunicator::~MumbleCommunicator() {
void mumble::MumbleCommunicator::loop() {
senderThread.reset(new std::thread(&MumbleCommunicator::senderThreadFunction, this));
//senderThread.reset(new std::thread(&MumbleCommunicator::senderThreadFunction, this));
while (!quit) {
int status = mumble_tick(mumble);

View File

@ -194,7 +194,10 @@ pj_status_t sip::PjsuaCommunicator::mediaPortGetFrame(pjmedia_frame *frame) {
if (availableSamples < count) {
callbackLogger.debug("Requested %d samples, available %d, filling remaining with zeros.", count,
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;

View File

@ -18,7 +18,7 @@ int main(int argc, char *argv[]) {
log4cpp::Appender *appender1 = new log4cpp::OstreamAppender("console", &std::cout);
appender1->setLayout(new log4cpp::BasicLayout());
log4cpp::Category &logger = log4cpp::Category::getRoot();
logger.setPriority(log4cpp::Priority::NOTICE);
logger.setPriority(log4cpp::Priority::INFO);
logger.addAppender(appender1);