From 1630e82c7fe61e7a049ed6737fdafec9298ab240 Mon Sep 17 00:00:00 2001 From: Scott Hardin Date: Sun, 28 May 2017 14:03:32 +0200 Subject: [PATCH] change ratio for estimating WAV sound length --- PjsuaCommunicator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PjsuaCommunicator.cpp b/PjsuaCommunicator.cpp index 2046fc3..63c660b 100644 --- a/PjsuaCommunicator.cpp +++ b/PjsuaCommunicator.cpp @@ -269,7 +269,7 @@ namespace sip { try { player.createPlayer(file, PJMEDIA_FILE_NO_LOOP); pinfo = player.getInfo(); - sleeptime = pinfo.sizeBytes / (pinfo.payloadBitsPerSample * 3); + sleeptime = (pinfo.sizeBytes / (pinfo.payloadBitsPerSample * 2.75)); if ( in_chan ) { // choose the target sound output player.startTransmit(*communicator.calls[ci.id].media);