mirror of https://github.com/procxx/kepka.git
Fix resuming audio on call end.
This commit is contained in:
parent
561d3e0670
commit
9a1069c1ae
|
@ -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 {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue