mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix resuming audio on call end.
This commit is contained in:
@@ -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,8 +373,8 @@ 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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user