• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision4436ba4125ca65563ade344da2e7050140b7dcf6 (tree)
Time2012-02-22 00:43:01
Authorqwerty2501 <riot313@gmai...>
Commiterqwerty2501

Log Message

読み上げ機能変更

Change Summary

Incremental Difference

Binary files a/nlite.suo and b/nlite.suo differ
--- a/speaker/open_jtalk_core.cpp
+++ b/speaker/open_jtalk_core.cpp
@@ -149,22 +149,28 @@ void COpenJtalkCore::SynthesisThreadFunction(void *userData){
149149
150150 if(dwRslt- WAIT_OBJECT_0 == 1)break;
151151 else if(dwRslt- WAIT_OBJECT_0 == 0){
152- CString synthesisString;
153- SynthesisQueue synthesisQueueCopy;
152+ CString synthesisString(TEXT(""));
153+
154154 self.synthesisQueueCS.Lock();
155155
156- synthesisQueueCopy = self.synthesisQueue;
157- self.synthesisQueue.clear();
156+
158157
158+ auto rbegin = self.synthesisQueue.rbegin();
159+ auto rend = self.synthesisQueue.rend();
159160
161+ for(;rbegin != rend;(++rbegin)){
162+ synthesisString += *rbegin;
163+
164+ if(rbegin != rend){
165+ synthesisString += TEXT(" ");
166+ }
167+ }
168+ self.synthesisQueue.clear();
160169 self.synthesisQueueCS.Unlock();
161170
162- auto rbegin = synthesisQueueCopy.rbegin();
163- auto rend = synthesisQueueCopy.rend();
171+
164172
165- for(;rbegin != rend;++rbegin){
166- self.Synthesis((const TChar_P)(const wchar_t*)*rbegin);
167- }
173+ self.Synthesis((const TChar_P)(const wchar_t*)synthesisString);
168174 }
169175
170176