def METHOD_NAME(self, wait=True, extra_delay=0.):
    """Stop."""
    if self.playing:
        action, self._action = self._action, None
        # Impose the same delay here that we imposed on the stim start
        cancel_action = self._mixer.cancel(
            action, time=self._start_time + extra_delay)
        if wait:
            self._mixer.wait(cancel_action)
        else:
            return cancel_action