Skip to content

Commit

Permalink
feedback com áudio para comando 'som ligado/desligado'. BugFix #103
Browse files Browse the repository at this point in the history
  • Loading branch information
joiceMarek committed May 31, 2017
1 parent 5b7fa9b commit 1212300
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/godonnie/Compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,14 @@ int ExprTreeEvaluator::run(pANTLR3_BASE_TREE tree)
//throw sintaxeException("Sintaxe não conhecida para comando '"+tokens[0]+"'\n");

// sound on or off
if (tokens[1] == SOUND_ON)
if (tokens[1] == SOUND_ON){
Donnie->speak("O som foi ligado com sucesso");
Donnie->muteTTS(false);
else if (tokens[1] == SOUND_OFF)
}
else if (tokens[1] == SOUND_OFF){
Donnie->speak("O som foi desligado com sucesso");
Donnie->muteTTS(true);
}
//else
//throw sintaxeException("Sintaxe não conhecida para comando '"+tokens[0]+"'\n");

Expand Down

0 comments on commit 1212300

Please sign in to comment.