Update of /cvsroot/playerstage/code/player/client_libs/libplayerc++
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9318/client_libs/libplayerc++
Modified Files:
playerc++.h speechrecognitionproxy.cc
Log Message:
several changes to make Python bindings work
Index: playerc++.h
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc++/playerc++.h,v
retrieving revision 1.71
retrieving revision 1.72
diff -C2 -d -r1.71 -r1.72
*** playerc++.h 24 Aug 2006 00:25:14 -0000 1.71
--- playerc++.h 21 Sep 2006 05:07:06 -0000 1.72
***************
*** 2184,2188 ****
///libplayerc data structure
! playerc_speech_recognition_t *mDevice;
public:
///Constructor
--- 2184,2188 ----
///libplayerc data structure
! playerc_speechrecognition_t *mDevice;
public:
///Constructor
Index: speechrecognitionproxy.cc
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc++/speechrecognitionproxy.cc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** speechrecognitionproxy.cc 2 Aug 2006 17:24:51 -0000 1.3
--- speechrecognitionproxy.cc 21 Sep 2006 05:07:06 -0000 1.4
***************
*** 48,56 ****
{
scoped_lock_t lock(mPc->mMutex);
! mDevice = playerc_speech_recognition_create(mClient, aIndex);
if (NULL==mDevice)
throw PlayerError("SpeechRecognitionProxy::SpeechRecognitionProxy()",
"could not create");
! if (0 != playerc_speech_recognition_subscribe(mDevice, PLAYER_OPEN_MODE))
throw PlayerError("SpeechRecognitionProxy::SpeechRecognitionProxy()",
"could not subscribe");
}
--- 48,56 ----
{
scoped_lock_t lock(mPc->mMutex);
! mDevice = playerc_speechrecognition_create(mClient, aIndex);
if (NULL==mDevice)
throw PlayerError("SpeechRecognitionProxy::SpeechRecognitionProxy()",
"could not create");
! if (0 != playerc_speechrecognition_subscribe(mDevice, PLAYER_OPEN_MODE))
throw PlayerError("SpeechRecognitionProxy::SpeechRecognitionProxy()",
"could not subscribe");
}
***************
*** 61,66 ****
assert(NULL!=mDevice);
scoped_lock_t lock(mPc->mMutex);
! playerc_speech_recognition_unsubscribe(mDevice);
! playerc_speech_recognition_destroy(mDevice);
mDevice = NULL;
}
--- 61,66 ----
assert(NULL!=mDevice);
scoped_lock_t lock(mPc->mMutex);
! playerc_speechrecognition_unsubscribe(mDevice);
! playerc_speechrecognition_destroy(mDevice);
mDevice = NULL;
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit