This commit is contained in:
bsongis
2014-09-15 11:51:18 +02:00
parent 9ec17f6e68
commit 6190c399c5
2 changed files with 9 additions and 2 deletions
+6
View File
@@ -103,6 +103,12 @@ class ToneContext {
uint16_t pause;
} state;
inline void setFragment(AudioFragment & fragment)
{
this->fragment = fragment;
memset(&state, 0, sizeof(state));
}
inline void clear()
{
memset(this, 0, sizeof(ToneContext));