1

I have 2 windowsMediaPlayer objects setup Both objects have the same mp3 song file but when I play them at the same time they are out of sync by a few seconds. The code I call to play them looks like this

     sound1.controls.play();
     sound2.controls.play();

Is it just because one play method is executed before the other and thus one fast then the other. Is their anyway I could sync them? I have tired messing with the rate of one track to match the other, but not getting it prefect.

Thanks

4

1 回答 1

2

您无法做到完美,玩家无法在设计的同时开始。您需要将两首歌曲混合成一首新歌曲,NAudio 库可以做到这一点。

于 2010-04-02T03:31:06.650 回答