Skip to content
Snippets Groups Projects
Commit 62e29720 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Adrien Béraud
Browse files

audio: update sample rate for ringtone

Change-Id: I84870f4e3ba2cdbc9df6d16c90aeb38d4d50c241
parent ad41cd62
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,15 @@ ToneControl::setSampleRate(unsigned rate)
telephoneTone_.reset(new TelephoneTone(prefs_.getZoneToneChoice(), rate));
else
telephoneTone_->setSampleRate(rate);
if (!audioFile_) {
return;
}
auto path = audioFile_->getFilePath();
try {
audioFile_.reset(new AudioFile(path, sampleRate_));
} catch (const AudioFileException& e) {
JAMI_WARN("Audio file error: %s", e.what());
}
}
std::shared_ptr<AudioLoop>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment