Skip to content

Commit

Permalink
fix va bug (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett authored and TheMagnetar committed Aug 17, 2019
1 parent 3c2ca8f commit ef6c14b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extensions/src/ACRE2TS/TS3Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ acre::Result CTS3Client::localStartSpeaking(const acre::Speaking speakingType_,
}
}

if (speakingType_ == acre::Speaking::direct) {
if (!this->getVAD() && speakingType_ == acre::Speaking::direct) {
this->microphoneOpen(true);
}

Expand All @@ -197,7 +197,9 @@ acre::Result CTS3Client::localStopSpeaking(const acre::Speaking speakingType_) {
bool resendDirectSpeaking = false;
switch (speakingType_) {
case acre::Speaking::direct:
this->microphoneOpen(false);
if (!this->getVAD()) {
this->microphoneOpen(false);
}
break;
case acre::Speaking::radio:
this->setRadioPTTDown(false);
Expand Down

0 comments on commit ef6c14b

Please sign in to comment.