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 StopDetachIfNotUsedSafe();
|
||||
|
||||
template <typename Callback>
|
||||
void IterateSamples();
|
||||
|
||||
} // namespace Audio
|
||||
|
||||
namespace Player {
|
||||
|
@@ -373,9 +373,9 @@ void Instance::resumeOnCall(AudioMsgId::Type type) {
|
||||
if (const auto data = getData(type)) {
|
||||
if (data->resumeOnCallEnd) {
|
||||
data->resumeOnCallEnd = false;
|
||||
}
|
||||
play(type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool Instance::next(AudioMsgId::Type type) {
|
||||
|
Reference in New Issue
Block a user