I am working on a device which's actions should be synchronized to the audio played. The audio stream is known in beforehand and can be altered to contain signals for the synchronization. But the device and the PC playing the music do not have any other connection but the audio. The synchronization should be in the regime 100ms.
The transfer function between the device and the PC is not known and can vary. Especially the gain can vary. Thererfore an approach not to sensitive to overmodulation would be preferrabel, if such an approach exists.
The current signal in the audio-stream is a click noise. A crosscorrelation is working quite well on the original data, but the signal gets less clear when a transfer function is introduced. And vanishes for an overmodulated signal, while for the human ear the signal is still present.
What would be a suitable approach to synchronize the device to the audio stream?
EDIT: It is an acoustical link.