Fix resuming audio on call end.

This commit is contained in:
John Preston 2018-11-09 11:26:33 +04:00
parent 561d3e0670
commit 9a1069c1ae
2 changed files with 1 additions and 4 deletions

View File

@ -31,9 +31,6 @@ void ScheduleDetachFromDeviceSafe();
void ScheduleDetachIfNotUsedSafe(); void ScheduleDetachIfNotUsedSafe();
void StopDetachIfNotUsedSafe(); void StopDetachIfNotUsedSafe();
template <typename Callback>
void IterateSamples();
} // namespace Audio } // namespace Audio
namespace Player { namespace Player {

View File

@ -373,9 +373,9 @@ void Instance::resumeOnCall(AudioMsgId::Type type) {
if (const auto data = getData(type)) { if (const auto data = getData(type)) {
if (data->resumeOnCallEnd) { if (data->resumeOnCallEnd) {
data->resumeOnCallEnd = false; data->resumeOnCallEnd = false;
}
play(type); play(type);
} }
}
} }
bool Instance::next(AudioMsgId::Type type) { bool Instance::next(AudioMsgId::Type type) {