⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ttsplayer.h

📁 了解 Symbian Operation Symtem C++ S60 的基本开发
💻 H
字号:
/*
* ============================================================================
*  Name     : TtsPlayer.h
*  Part of  : TextToSpeech example
*  Created  : 05.07.2006 by Artem Marchenko
*  Description: Text-to-speech player wrapper
*     
*  Version  : 1.0
*  Copyright: Artem Marchenko 2006, http://symbianexample.com
* ============================================================================
*/


#ifndef __TTSPLAYER_H__
#define __TTSPLAYER_H__

//  Include Files
#include <MdaAudioSamplePlayer.h>
#include <e32base.h>

class CTtsPlayer : public CBase, public MMdaAudioPlayerCallback
	{
	public:
		// construction
		static CTtsPlayer* NewLC();
		~CTtsPlayer();
		/** Simplified call'n'forget interface.
		* Synchronous function
		* @leave System-wide error codes. @see MMdaAudioPlayerCallback errors
		*/
		void PlayTextL( TDesC& aText );
	// From the observer interface
	public:
		virtual void MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds &aDuration);
		virtual void MapcPlayComplete(TInt aError);
	private:
		void ConstructL();
	private:
		CMdaAudioPlayerUtility* iPlayer;
		TBool iPlaybackInProgress;
		CActiveSchedulerWait* iWaiter;
		// Playback error code
		TInt iErr;
	};


#endif  // __TTSPLAYER_H__

// End of file

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -