~aleteoryx/muditaos

d69100c0b660e90975f885fa8a72e8fc3edcc106 — Maciej Gibowicz 3 years ago d1d311c
[MOS-337] Fix no audio for incoming calls/messages

After the outgoing call was terminated,
the audio was terminated incorrectly,
therefore the next call did not ring.
1 files changed, 4 insertions(+), 1 deletions(-)

M module-services/service-cellular/call/CallAudio.cpp
M module-services/service-cellular/call/CallAudio.cpp => module-services/service-cellular/call/CallAudio.cpp +4 -1
@@ 9,6 9,7 @@
#include "service-audio/AudioServiceName.hpp"
#include <service-audio/AudioServiceAPI.hpp>
#include <Timers/TimerFactory.hpp>
#include <gsl/util>

struct CallRingAudio::CallMeta
{


@@ 33,11 34,13 @@ void CallRingAudio::play()

void CallRingAudio::stop()
{
    auto _ = gsl::finally([this] { AudioServiceAPI::StopAll(&owner); });

    if (not started) {
        return;
    }
    started = false;
    owner.sync(meta->async);
    AudioServiceAPI::StopAll(&owner);
}

void CallRingAudio::muteCall()