3 #include "WinSpeaker.h"
5 //By default, mutex should be nonrecursive.
6 QMutex
WinSpeaker::mutex(QMutex::NonRecursive
);
8 WinSpeaker::WinSpeaker(QObject
*parent
)
13 bool WinSpeaker::speak(const std::string
&wordFile
) {
23 void WinSpeaker::run() {
24 PlaySound(word
.c_str(), 0, SND_FILENAME
|SND_ASYNC
);