0
0

I have been getting the length of the sound and then setting a System.Threading.Timer to fire near the end of the song so i can load the next sound and cross fade them. I have just been reading the forums and learnt about addSyncPoint, should i be using that instead?

What is the advantages/disadvantages of either method
Thanks

  • You must to post comments
0
0

the sync points method will work even if you pause your file then you resume playing it, so it’s more precise

BTW you shold probably load both sounds at once, but the second one asynchronously (if the first one is long enough), so when you begin the crossfade your sound is already loaded

my 2 cents 😉

  • You must to post comments
0
0

OK, cool thanks, I was removing the timer and measuring the position in the file and setting a new timer when paused and started again. Also i was setting the timer to trigger a few seconds before i needed to and then measuring the time taken to load the time and subtracting that from how early i had triggered and then sleeping the thread for the right amount of time to start the cross fade… sync points sound so much more simple, lol

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.