Pretty sure that currentTie would be the current time based on the start of the sound. Instead of stopTime you should be using endTime.