change ratio for estimating WAV sound length

This commit is contained in:
Scott Hardin 2017-05-28 14:03:32 +02:00
parent 75cafbfefe
commit 1630e82c7f

View File

@ -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);