libtunes: change variable name

This make the variable purpose more clear.
This commit is contained in:
Simone Guscetti
2018-01-29 09:45:59 -05:00
committed by Daniel Agar
parent 2ec5ea48a3
commit 9cb95b64ca
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -74,7 +74,7 @@ void Tunes::config_tone(bool repeat_flag)
_next = nullptr;
} else {
_tune = _start_tune;
_tune = _tune_start_ptr;
_next = _tune;
}
@@ -120,7 +120,7 @@ int Tunes::set_control(const tune_control_s &tune_control)
// TODO: come up with a better strategy
if (_tune == nullptr || reset_playing_tune || tune_control.tune_override) {
_tune = _default_tunes[tune_control.tune_id];
_start_tune = _default_tunes[tune_control.tune_id];
_tune_start_ptr = _default_tunes[tune_control.tune_id];
_next = _tune;
}
@@ -140,7 +140,7 @@ void Tunes::set_string(const char *string)
// set tune string the first time
if (_tune == nullptr) {
_tune = string;
_start_tune = string;
_tune_start_ptr = string;
_next = _tune;
}
}
+1 -1
View File
@@ -101,7 +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
const char *_tune_start_ptr = nullptr; ///< pointer to repeat tune
unsigned _tempo;
unsigned _note_length;