Skip to content

Commit fe0fc0a

Browse files
committed
fixed for comments
1 parent 6b15dfe commit fe0fc0a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

include/phonemizer.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,6 @@ class espeak_wrapper {
320320
const char * text_to_phonemes(const void ** textptr, int textmode, int phonememode);
321321
void initialize(espeak_AUDIO_OUTPUT output, int buflength, const char * path, int options);
322322
};
323-
324-
// non-const static members must be initialized out of line
325-
espeak_wrapper* espeak_wrapper::instance{nullptr};
326-
std::mutex espeak_wrapper::mutex;
327323
#endif
328324

329325
enum lookup_code {

src/phonemizer.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22

33
#ifdef ESPEAK_INSTALL
44
/**
5-
* espeak_wrapper functions
5+
* espeak_wrapper functions and assignments
66
*
77
* The espeak_wrapper is a singleton which wraps threaded calls to espeak-ng with a shared mutex
88
*/
9+
10+
// non-const static members must be initialized out of line
11+
espeak_wrapper* espeak_wrapper::instance{nullptr};
12+
std::mutex espeak_wrapper::mutex;
13+
914
espeak_wrapper * espeak_wrapper::get_instance() {
1015
if (!instance) {
1116
instance = new espeak_wrapper;

0 commit comments

Comments
 (0)