From d10372c6b5c4d10d7f36511a29e6a155cc2d3318 Mon Sep 17 00:00:00 2001
From: Martina <martina@rivizzigno.it>
Date: Wed, 5 Jul 2017 08:52:57 +0200
Subject: [PATCH] tunes: change config_tone definition and add pointer to the
 beginning of the tune to repeat it

---
 src/lib/tunes/tunes.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib/tunes/tunes.h b/src/lib/tunes/tunes.h
index 60bedabf66..6bfd5cb731 100644
--- a/src/lib/tunes/tunes.h
+++ b/src/lib/tunes/tunes.h
@@ -101,6 +101,7 @@ private:
 
 	const char *_tune = nullptr; ///< current tune string
 	const char *_next = nullptr; ///< next note in the string
+	const char *_start_tune = nullptr; ///< pointer to repeat tune
 
 	unsigned _tempo;
 	unsigned _note_length;
@@ -168,8 +169,8 @@ private:
 	unsigned next_dots();
 
 	/**
-	 * set the tune parameters to default
+	 * if repeat false set the tune parameters to default else point to the beginning of the tune
 	 */
-	void config_tone();
+	void config_tone(bool repeat);
 
 };
-- 
GitLab