wait fix, seek, fileplay, struct thread fix