Added proper track end detection for vgmstream tracks.