Old fashion design for PC-104
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: LgSpeechPlayer.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of LgSpeechPlayer.h
//----------------------------------------------------------------------------
#ifndef __LG__SPEECH__PLAYER__H__INCLUDED__
#define __LG__SPEECH__PLAYER__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "..\..\LgLib\Thread.h"
class CLgSpeechPlayer{public: CLgSpeechPlayer(); virtual ~CLgSpeechPlayer();
public: BOOL PlaySpeech( LPCTSTR pText, DWORD dwWaveDeviceID, INT nVolume = 100, INT nRate = 0, LPWSTR pVoiceTokenId = NULL ); void ResetSpeech();
public: typedef BOOL (*ENUMVOICEPROC)( LPCTSTR pTokenDescription, LPWSTR pTokenId, void* pParam ); static BOOL EnumVoice( ENUMVOICEPROC, void* );
protected: virtual void OnSpeechStartInputStream(); virtual void OnSpeechEndInputStream();
private: class CLgSpeechPlayerThread : public CLgThread { public: void Link( CLgSpeechPlayer *pSpeechPlayer ) { m_pSpeechPlayer = pSpeechPlayer; } private: virtual DWORD ThreadProc(); private: CLgSpeechPlayer *m_pSpeechPlayer; }m_Thread; friend class CLgSpeechPlayerThread; DWORD SapiThreadProc( HANDLE hStopEvent );
private: ISpMMSysAudio *m_pMMSysAudio; ISpVoice *m_pVoice; BOOL m_bCoInitialized; BOOL m_bInitialized;};
#endif
|