This kind of whistle is known as a "bosun whistle," and it's used to communicate directions because its high-pitched notes can be heard over the roaring of a storm.