FS-7083 #resolve #comment this should do it. The problem is linked to side-effects from the read thread being delayed by writing to the file handle. It was so much worse on mp3 because the shout encoder blocks while its churning the data and delays it more. This patch adds a dedicated thread for writing to the file and the channel_variable RECORD_USE_THREAD=false will disable it and sync may still be maintained at the cost of dropping more data from the audio signal.

This commit is contained in:
Anthony Minessale
2014-12-20 00:25:59 -06:00
parent dc8c8cc7b8
commit 326289caf9
3 changed files with 150 additions and 56 deletions

View File

@@ -1046,6 +1046,8 @@ SWITCH_MODULE_RUNTIME_FUNCTION(softtimer_runtime)
tfd = -1;
}
}
if (tfd > -1) MATRIX = 0;
}
#else
tfd = -1;