Browse Source

change ratio for estimating WAV sound length

Scott Hardin 6 years ago
parent
commit
1630e82c7f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      PjsuaCommunicator.cpp

+ 1 - 1
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);