Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix multi-track recordings going out of alignment on long recordings
Previously the wall clock was used to align speakers. As this didn't allow for reliable detection of silence between outputs a heuristic was used which only started adding silence after 100ms. This patch makes the mixer keep track of the absolute number of samples requested from it. This number is then forwarded to the recorder with each addBuffer to allow for sample precise alignment. To get the absolute sample number when starting the recording a thread-safe way to retrieve this counter from the outside was added using a new mixer lock.
- Loading branch information
Showing
5 changed files
with
105 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters