2011-11-29, 10:03
True. The first thing to do is to find the SetDelay function and how it is stored inside.
After that I see two ways. A "dirty" one and a "cleaner".
The dirty way could be to set the delay of hdmi always to 0.0 since the hdmi signal is handled by the tv's and they take care of the synchronization with the image. After that you could set the delay from the settings only for the second output that goes to the receiver or the external devices.
The cleaner way would be to add to the gui a second slider for the second output and have a second delay value for the second output. So when the second player calls to the GetDelay function to give it the correct value.
Since each sound objects has a GetDelay function it would be fairly easy for an interested reader
After that I see two ways. A "dirty" one and a "cleaner".
The dirty way could be to set the delay of hdmi always to 0.0 since the hdmi signal is handled by the tv's and they take care of the synchronization with the image. After that you could set the delay from the settings only for the second output that goes to the receiver or the external devices.
The cleaner way would be to add to the gui a second slider for the second output and have a second delay value for the second output. So when the second player calls to the GetDelay function to give it the correct value.
Since each sound objects has a GetDelay function it would be fairly easy for an interested reader