Synchronous Input and Output of Sound Card Based on Double Helix Structure
In order to improve the synchronization of recording and playing in sound card applications,a novel callback recursive logic chain was designed by cross calling the recording and playing operations in the callback function.The method was manifested in the two timelines of recording and playback,with two logical loops of callback recursive patterns forming a wonderful double helix structure,which was similar to the classic gene double helix model in life science.The dual helix structure of the recording and playback program mechanism has better results in neutralizing jitter,making it easier to achieve better synchronization compared to the conventional recording and playback scheduling mode.The method can be applied in situations where multiple audio signals need to be synchronized,such as acoustic echo cancellation,sound source localization,and active noise reduction,in order to achieve better synchronization and assist in the effectiveness of corresponding audio algorithms.
double helix structurecallback recursionsynchronizationsound cardinput and output