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
- codeMonkey76 asked 11 years ago
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 😉
- FireStorm answered 11 years ago
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
- codeMonkey76 answered 11 years ago
Please login first to submit.