Skip to content
Snippets Groups Projects
Commit d10372c6 authored by Martina's avatar Martina Committed by Daniel Agar
Browse files

tunes: change config_tone definition and add pointer to the beginning

of the tune to repeat it
parent 1988141c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment