MCPcopy Create free account
hub / github.com/RetroShare/RetroShare / save

Method save

plugins/VOIP/gui/VOIPConfigPanel.cpp:283–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283bool VOIPConfigPanel::save(QString &/*errmsg*/)
284{
285 //mainly useless beacause saving occurs in realtime
286 //s.iQuality = qsQuality->value();
287 rsVOIP->setVoipiNoiseSuppress((ui.qsNoise->value() == 14) ? 0 : - ui.qsNoise->value());
288 rsVOIP->setVoipiMinLoudness(20000 - ui.qsAmp->value());
289 rsVOIP->setVoipVoiceHold(ui.qsTransmitHold->value());
290 rsVOIP->setVoipfVADmin(ui.qsTransmitMin->value());
291 rsVOIP->setVoipfVADmax(ui.qsTransmitMax->value());
292 /*s.uiDoublePush = qsDoublePush->value() * 1000;*/
293 rsVOIP->setVoipATransmit(static_cast<RsVOIP::enumAudioTransmit>(ui.qcbTransmit->currentIndex() ));
294 rsVOIP->setVoipEchoCancel(ui.qcbEchoCancel->isChecked());
295
296 return true;
297}
298
299void VOIPConfigPanel::on_qsTransmitHold_valueChanged(int v) {
300 float val = static_cast<float>(v * FRAME_SIZE);

Callers 2

testFeedItemMethod · 0.45
encodeDataMethod · 0.45

Calls 9

setVoipiNoiseSuppressMethod · 0.80
valueMethod · 0.80
setVoipiMinLoudnessMethod · 0.80
setVoipVoiceHoldMethod · 0.80
setVoipfVADminMethod · 0.80
setVoipfVADmaxMethod · 0.80
setVoipATransmitMethod · 0.80
currentIndexMethod · 0.80
setVoipEchoCancelMethod · 0.80

Tested by

no test coverage detected