tunes: change config_tone definition and add pointer to the beginning

of the tune to repeat it
This commit is contained in:
Martina
2018-01-29 09:45:59 -05:00
committed by Daniel Agar
parent 1988141c6d
commit d10372c6b5
+3 -2
View File
@@ -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);
};