From aa47a9bfc2af5ec17d19f7770a9a9c58b24f9af1 Mon Sep 17 00:00:00 2001 From: atraczyk <andreastraczyk@gmail.com> Date: Thu, 30 Mar 2017 12:11:43 -0400 Subject: [PATCH] ringtone: prevent attempt to play ringtone file on UWP - libsndfile was removed from the UWP and incoming ringtones are handled within the client. This patch conditionally prevents playRingtone from being called, so that an empty buffer is not played. Change-Id: Ib6f6fcfe4cb53eaf5114c344b51444c01940df2a Reviewed-by: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com> --- src/manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/manager.cpp b/src/manager.cpp index c5af7a5eef..d36e68d71d 100644 --- a/src/manager.cpp +++ b/src/manager.cpp @@ -1890,7 +1890,9 @@ Manager::incomingCall(Call &call, const std::string& accountId) if (not hasCurrentCall()) { call.setState(Call::ConnectionState::RINGING); +#ifndef RING_UWP playRingtone(accountId); +#endif } pimpl_->addWaitingCall(callID); -- GitLab