To "play/use the Scottish whistle" is to stick your fingers down your throat in order to make yourself vomit, either to enable you to continue drinking or to ease the burden of the hangover the morning after.
"I played the Scottish whistle when I got home so I was fine the morning after"