Skip to content
Snippets Groups Projects
Commit aa47a9bf authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Andreas Traczyk
Browse files

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: default avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent 2e3b0e00
Branches
Tags
No related merge requests found
...@@ -1890,7 +1890,9 @@ Manager::incomingCall(Call &call, const std::string& accountId) ...@@ -1890,7 +1890,9 @@ Manager::incomingCall(Call &call, const std::string& accountId)
if (not hasCurrentCall()) { if (not hasCurrentCall()) {
call.setState(Call::ConnectionState::RINGING); call.setState(Call::ConnectionState::RINGING);
#ifndef RING_UWP
playRingtone(accountId); playRingtone(accountId);
#endif
} }
pimpl_->addWaitingCall(callID); pimpl_->addWaitingCall(callID);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment