Skip to content

Commit

Permalink
whoops voice code not portable..
Browse files Browse the repository at this point in the history
  • Loading branch information
aardappel committed Aug 12, 2023
1 parent 9c5f050 commit c8db966
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dev/src/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,9 +648,11 @@ bool TextToSpeechInit() {

void StopTextToSpeech() {
text_to_speech_q.clear();
if (!voice) return;
voice->Release();
voice = NULL;
#ifdef _WIN32
if (!voice) return;
voice->Release();
voice = NULL;
#endif
}

bool TextToSpeechUpdate() {
Expand Down

0 comments on commit c8db966

Please sign in to comment.