Add new API for playback with loop at wav_player_internal.h