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

📄 tce1_32.h

📁 东进语音板卡开发
💻 H
📖 第 1 页 / 共 2 页
字号:

BOOL WINAPI DJUser_SetSendSoundValue	( int userID, int value );
BOOL WINAPI DJUser_SetReciveSoundValue	( int userID, int value );
int  WINAPI DJUser_GetSendSoundValue	( int userID );
int  WINAPI DJUser_GetReciveSoundValue	( int userID );

UINT WINAPI DJUser_GetPreStopDialToNowTime( int userID );

PstnErr WINAPI DJUser_SearchFreeTrunkAndDial ( int userID,
							int pcmID,
							const char * szPhoneNum,
							const char * szCallerStr );
BOOL WINAPI DJUser_DialByTrunk ( int userID,
						  int trunkID,
						  const char * szPhoneNum,
						  const char * szCallerStr );
int WINAPI DJUser_GetDialTrunkID	( int userID );
DialStatus WINAPI DJUser_GetDialStatus	( int userID );

/* rem by H.J.N, no use
BOOL	userEnterConversation	( int userID, int groupID );
void	userExitConversation	( int userID );
int 	userGetConversationGroupID	( int userID );
*/
//added by N.C.J 1999.6.14
int WINAPI DJUser_PlayFileNew(int userID,char *FileName,DWORD Position,DWORD Length);
void WINAPI DJUser_StopPlayFile(int userID);
int WINAPI DJUser_RecordFileNew(int userID,char *FileName,DWORD Position,DWORD Length);
void WINAPI DJUser_StopRecordFile(int userID);
//end of N.C.J

//add by N.C.J, 1999.7.29
BOOL WINAPI DJUser_InitDialBufNew(int userID);
int WINAPI DJUser_GetDialNumNew(int userID);
char WINAPI DJUser_GetDialCodeNew(int userID);
char WINAPI DJUser_GetDialHitNew(int userID);
//end of N.C.J

//1999.8.11
int   WINAPI DJUser_SendDtmfStr(int userID,const char * pcDtmf);
bool   WINAPI DJUser_CheckDtmfSendEnd(int userID);
int   WINAPI DJUser_PlayPromptStr(int userID,const char * pcPromptStr);
bool   WINAPI DJUser_CheckPlayPromptStrEnd(int userID);
//end of N.C.J

/******************************************************************************\
 *
 *	Functions for Voice channel
 *
\******************************************************************************/
int 	WINAPI DJVoc_GetTotalVoiceChannel( void );

int 	WINAPI DJVoc_VoiceStart	(	int 	voiceChannelID,
						int 	voiceResHandle,
						DWORD	voiceResSize,
						DWORD	voiceResOffset,
						VoiceResourcesType	voiceResType,
						VoiceOperatorType	voiceOpType );
int 	WINAPI DJVoc_PlayNextVoice	(	int 	voiceChannelID,
						int 	voiceResHandle,
						DWORD	voiceResSize,
						DWORD	voiceResOffset );
BOOL	WINAPI DJVoc_FromHeadRePlay	( int voiceID );

/***********************************************************************
BOOL	voicePlayPromptVoice	( int voiceID, const char * voiceName );
BOOL	voiceLoopPlayPromptVoice( int voiceID, const char * voiceName );
BOOL	voicePlayPromptVoice	( int voiceID, int voiceResID );
BOOL	voiceLoopPlayPromptVoice( int voiceID, int voiceResID );
************************************************************************/
BOOL	WINAPI DJVoc_PlayPromptFile		( int voiceID, const char * voiceName );
BOOL	WINAPI DJVoc_LoopPlayPromptFile	( int voiceID, const char * voiceName );
BOOL	WINAPI DJVoc_PlayPromptID		( int voiceID, int voiceResID );
BOOL	WINAPI DJVoc_LoopPlayPromptID	( int voiceID, int voiceResID );


BOOL	WINAPI DJVoc_PauseChannelVoiceOp( int voiceID );
BOOL	WINAPI DJVoc_ContinueChannelVoiceOp( int voiceID );
BOOL	WINAPI DJVoc_CheckChannelVoicePause( int voiceID );

BOOL	WINAPI DJVoc_VoiceStop			( int voiceChannelID );

BOOL	WINAPI DJVoc_CheckVoiceEnd		( int voiceChannelID );
BOOL	WINAPI DJVoc_CheckVoiceChannelOp( int voiceChannelID );

long	WINAPI DJVoc_GetVoiceDataLength ( int voiceChannelID );
int 	WINAPI DJVoc_GetVoiceHandle	( int voiceChannelID );
int 	WINAPI DJVoc_GetVoiceErr		( int voiceID );
VoiceResourcesType WINAPI DJVoc_GetVoiceResourceType( int voiceID );
VoiceOperatorType WINAPI DJVoc_GetVoiceOperateType ( int voiceID );

/**********************************************************
BOOL	voiceFindPromptVoiceRes( const char * voiceName,
							int   & voiceHandle,
							DWORD & voiceSize,
							DWORD & voiceOffset );

BOOL	voiceFindPromptVoiceRes( int voiceResID,
							int   & voiceHandle,
							DWORD & voiceSize,
							DWORD & voiceOffset );
**********************************************************/
BOOL	WINAPI DJVoc_GetPromptInfoByName( const char * voiceName,
							int   * voiceHandle,
							DWORD * voiceSize,
							DWORD * voiceOffset );

BOOL	WINAPI DJVoc_GetPromptInfoByHandle( int voiceResID,
							int   * voiceHandle,
							DWORD * voiceSize,
							DWORD * voiceOffset );

int 	WINAPI DJVoc_SearchFreeVoiceChannelForPlay 	( void );
int 	WINAPI DJVoc_SearchFreeVoiceChannelForRecord	( void );

// new add for multi-card, hjn_new
int 	WINAPI DJVoc_SFVC_ForPlay 	( int trunkID );
int 	WINAPI DJVoc_SFVC_ForRecord	( int trunkID );
// new add for multi-card

// new add for E1-PCI
int 	WINAPI DJVoc_SFVC_ForPlay_New 	( int trunkID, int IsForTrunk );
int 	WINAPI DJVoc_SFVC_ForRecord_New	( int trunkID, int IsForTrunk );
// end 

int 	WINAPI DJVoc_GetRecordTrunkID ( int voiceChannelID );
int 	WINAPI DJVoc_GetRecordUserID	( int voiceChannelID );

/******************************************************************************\
 *
 *	Functions for Connect Operate
 *
\******************************************************************************/
BOOL	WINAPI DJExg_SetListenUserToUser	 ( int trgUserID, int srcUserID );
BOOL	WINAPI DJExg_ClearListenUserFromUser( int trgUserID );
BOOL	WINAPI DJExg_SetListenUserToTrunk 	( int userID, int trunkID );
BOOL	WINAPI DJExg_ClearListenUserFromTrunk( int userID );

BOOL	WINAPI DJExg_SetListenTrunkToUser 	( int trunkID, int userID );
BOOL	WINAPI DJExg_ClearListenTrunkFromUser( int trunkID );
BOOL	WINAPI DJExg_SetListenTrunkToTrunk	( int trgTrunkID, int srcTrunkID );
BOOL	WINAPI DJExg_ClearListenTrunkFromTrunk(int trgTrunkID );

BOOL	WINAPI DJExg_SetLinkTrunkAndUser				( int trunkID, int userID );
BOOL	WINAPI DJExg_ClearLinkTrunkAndUserByTrunk	( int trunkID );
BOOL	WINAPI DJExg_ClearLinkTrunkAndUserByUser	( int userID );

BOOL	WINAPI DJExg_SetLinkTrunkAndTrunk		( int trgTrunkID, int srcTrunkID );
BOOL	WINAPI DJExg_ClearLinkTrunkAndTrunk ( int trunkID );
BOOL	WINAPI DJExg_LinkUserAndUser		( int trgUserID, int srcUserID );
BOOL	WINAPI DJExg_ClearLinkUserAndUser	( int userID );

// modify by H.J.N
BOOL	WINAPI DJExg_SetLinkPlayVoiceToTrunk	( int trunkID, int voiceID/*rem by H.J.N*//*, BOOL conn=TRUE*/ );
void WINAPI DJExg_VoiceToTrunk_SetParam (BOOL conn);
// end of add

BOOL	WINAPI DJExg_ClearLinkPlayVoiceFromTrunk(int trunkID );
BOOL	WINAPI DJExg_SetLinkPlayVoiceToUser 	( int userID, int voiceID );
BOOL	WINAPI DJExg_ClearLinkPlayVoiceFromUser( int userID );

BOOL	WINAPI DJExg_SetLinkRecordVoiceToUser 	( int userID, int voiceID );
BOOL	WINAPI DJExg_ClearLinkRecordVoiceFromUser( int userID );
BOOL	WINAPI DJExg_SetLinkRecordVoiceToTrunk	( int trunkID, int voiceID );
BOOL	WINAPI DJExg_ClearLinkRecordVoiceFromTrunk(int trunkID );

/* rem by H.J.N, no use
BOOL	coonConnectSignalVoiceToUser( int userID, int signalVoiceStream=11, int signalVoiceChannel=22);
BOOL	coonBreakSignalVoiceToUser( int userID, int signalVoiceStream=11, int signalVoiceChannel=22 );
BOOL	coonConnectSignalVoiceToTrunk( int trunkID, int signalVoiceStream=11, int signalVoiceChannel=22);
BOOL	coonBreakSignalVoiceToTrunk( int trunkID, int signalVoiceStream=11, int signalVoiceChannel=22 );
*/

/////////////////////////////////////////////////////////////////////////////
int 	WINAPI DJSys_GetPcmNum		( void );

#define BASE 		500
#define CURRENTIN   BASE
#define CURRENTOUT	BASE + 1
#define LASTIN		BASE + 2
#define LASTOUT		BASE + 3
#define TOTALIN		BASE + 4
#define TOTALOUT	BASE + 5

UINT WINAPI DJSys_GetImpExpNum(int ImpExpType);
DWORD WINAPI DJSys_GetTotalImpExpNum(int ImpExpType);
UINT WINAPI DJSys_GetPcmImpExpNum(int pcmID,int ImpExpType);
DWORD WINAPI DJSys_GetPcmTotalImpExpNum(int pcmID, int ImpExpType);

BYTE	WINAPI DJSys_GetPcmStatus	( int pcmID );
void	WINAPI DJSys_StopWarning 	( void );
void	WINAPI DJSys_EnableWarn	( void );
void	WINAPI DJSys_DisableWarn 	( void );

/*****************************************************************************
void	pstnGetRunTime		( DWORD & hours, BYTE & minutes, BYTE & seconds );
void	pstnGetCurrentTime	( BYTE & hours, BYTE & minutes, BYTE & seconds );
******************************************************************************/
void	WINAPI DJSys_GetSysRunTime		( DWORD * hours, BYTE * minutes, BYTE * seconds );
void	WINAPI DJSys_GetSysTime	( BYTE * hours, BYTE * minutes, BYTE * seconds );
void	WINAPI DJSys_SetSysTime 	( BYTE hours, BYTE minutes, BYTE seconds );

PstnErr WINAPI DJSys_GetErrCode( void );

int 	WINAPI DJSys_FreeMfcNum( void );
int 	WINAPI DJSys_FreePlayVoiceNum( void );
int 	WINAPI DJSys_FreeDtmfNum( void );

// hjn_new
int 	WINAPI DJSys_FreeMfcNumNew( int trunkID );
int 	WINAPI DJSys_GetCardType(void);
// end of hjn_new

// add by H.J.N
char  *		WINAPI DJSys_GetInstallDir( void );

//void	DJSys_EnableAutoApplyDtmf( void );
//void	pstnDisableAutoApplyDtmf( void );
#define DISABLEDTMF 0
#define ENABLEDTMF  1
void WINAPI DJSys_AutoApplyDtmf(int DtmfMode);

BOOL WINAPI DJSys_IsAutoApplyDtmf( void );

void WINAPI DJSys_EnableAutoKB( void );
void WINAPI DJSys_DisableAutoKB( void );

/* rem by H.J.N, no use
void	pstnGetDialVoiceChannel( int * stream, int * channel );

int 	pstnSetConversationNum( int num = 3 );
int 	pstnGetConversationGroupNum( void );
int     pstnGetConvGroupFreeMemberNum( int groupID );   //how many free member in this group
int     pstnGetConverGroupRecordVoiceID( int groupID );

void	pstnEnableSendBackDLForForeHangOff( void );
void	pstnDisableSendBackDLForForeHangOff( void );

void    pstnSetHangOffCount( BYTE count );
*/

//add by N.C.J 1999.8.11
bool WINAPI DJSys_EnableDtmfSend();
//end of add

//--------------------------------------------------------
//Add by Wang Guoli 1998.3.17
BOOL WINAPI DJVoc_PlayFile(int trunkID,char *FileName);
void WINAPI DJVoc_StopPlayFile(int trunkID);
void WINAPI DJVoc_InitIndexPlayFile(int trunkID);
BOOL WINAPI DJVoc_AddIndexPlayFile(int trunkID, char *FileName);
// add for zyb
BOOL WINAPI DJVoc_AddIndexPlayFile_ZYB(int trunkID, char *FileName, int DNum );

BOOL WINAPI DJVoc_StartIndexPlayFile(int trunkID);
void WINAPI DJVoc_StopIndexPlayFile(int trunkID);
BOOL WINAPI DJVoc_CheckIndexPlayEnd(int trunkID);
BOOL WINAPI DJVoc_RecordFile(int trunkID,char *FileName,DWORD RecordLen);
void WINAPI DJVoc_StopRecordFile(int trunkID);
void WINAPI DJTrk_GetMfcCodeA(int trunkID,LPSTR MfcCode) ;
void WINAPI DJTrk_GetHostCodeA(int trunkID, char *HostCode );
void	WINAPI DJTrk_GetDtmfCodeA( int trunkID, char *DtmfCode);
//added by N.C.J 1999.6.14
int WINAPI DJVoc_RecordFileNew(int trunkID,char *FileName,DWORD Position,DWORD Length);
int WINAPI DJVoc_PlayFileNew(int trunkID,char *FileName,DWORD Position,DWORD Length);

//--------------------------------------------------------
// add for WHB
BOOL WINAPI DJTrk_SetDLLowBit ( int trunkID, BYTE byLowBit );

// add for WHB_new,1999.08.12
void WINAPI DJSys_DialStatusAfterKB ( int mode );

// add for lxg
int WINAPI DJVoc_StopPlayMemory ( int voiceID );
int WINAPI DJVoc_PlayMemory ( int voiceID, char *p, WORD wPlayLen);


// add for PengHu, 1999.11.23
BOOL WINAPI DJTrk_SetMoreInfo ( int trunkID, DWORD dwInfoType, int iInfoVal );

//add by N.C.J 
bool WINAPI DJTrk_RealConnect(int trunkID);
//end of add

#define CHTYPE_USER     0
#define CHTYPE_TRUNK    1
#define CHTYPE_EMPTY    2
#define CHTYPE_RECORD   3
#define CHTYPE_CS		4
#define CHTYPE_EM_CTRL	5
#define CHTYPE_EM_4VOC	6
#define CHTYPE_EM_2VOC	7

int WINAPI DJUser_CheckChType(int userID);

// v2-modify
void WINAPI DJTrk_ResetSigCheck (int trunkID);
void WINAPI DJTrk_ReadSigBuf ( int trunkID, int *piNowPoint, int *piCount, BYTE *SigBuf );
int WINAPI DJTrk_IsFaxTone ( int trunkID, int CheckLen, BYTE cbSensLevel );

int	WINAPI DJVR_SetRefreshSize ( WORD wSize );
int WINAPI DJVR_StartRecord ( int trunkID );
int WINAPI DJVR_StopRecord ( int trunkID );
int	WINAPI	DJVR_GetRecordData ( int trunkID, char *pBuffer );

// end

//for-tts
int WINAPI DJTrk_RealPlayMemory ( int trunkID,char *PlayBuf, DWORD dwLength );
//add by lanjun for tts 2006-03-09
int WINAPI DJTrk_RealStopPlayMemory (int trunkID);
//add by lanjun for tts 2006-03-09
int	WINAPI	IsNowSupportTTS(void);

// add for-FSK-E1, 2001.05.17
int	WINAPI E1FSK_InitForFSK(void);
void WINAPI E1FSK_ResetCallerIDBuffer(int trunkID);
WORD WINAPI E1FSK_GetFSKRawStr (int trunkID, LPSTR FSKRawStr);
// end
// add in 2005.10.26
void WINAPI E1FSK_SetSendEnd_ResetFlag(int trunkID);

// SS1、DSS1、SS7混用
#define		PCM_WORK_MODE_NONE	0
#define		PCM_WORK_MODE_SS1	1
#define		PCM_WORK_MODE_DSS1	2
#define		PCM_WORK_MODE_SS7	3

BYTE WINAPI	DJSys_GetPcmMode	( int pcmID );
int	WINAPI DJSys_IsUseThisSignal ( BYTE cbCheckPcmMode );
// end

void WINAPI	DJSys_UserCall_TC08A32 	( int	flag );

//HJN ADD FOR DFM 2001.9.11
int WINAPI DJTrk_GetTimeSlot(int trunkID);
int WINAPI DJTrk_ConnectFromTS(int trunkID, int iTS);
int WINAPI DJTrk_DisconnectTS(int trunkID);
//HJN end ADD FOR DFM 2001.9.11

// add for XinTai, 2001.11.20
int	WINAPI XT_FetchOneErr ( int	*pVocID, DWORD	*pdwErrCode );

// 2002.11.19, add for "可调节的、时间准确的DTMF发送" 
int		WINAPI DJSys_SetSendPara ( int ToneLen, int SilenceLen );
int		WINAPI DJTrk_NewSendDtmfBuf ( int trunkID, LPSTR DialNum);
// end of add

//  2002.11.21, add for 模拟通道连接FAX
int WINAPI DJFax_User_SetLink ( WORD wFaxChnl, WORD userChnl );
int WINAPI DJFax_User_ClearLink ( WORD wFaxChnl, WORD userChnl );
int WINAPI DJFax_User_GetFaxChnl (WORD userChnl);
int WINAPI DJFax_User_GetUserChnl (WORD wFaxChnl);
// end of add

// 2003.03.14 add for DnlD function
bool		WINAPI DJSys_DownLoad(int SigMode, int WinHide);

// 2003.04.29 add for SHJL
int		WINAPI DJExg_ClearLinkTrunkAndUserByUser_SHJL	( int userID );

// 2004.02.05 add for 得到一号信令的MFC原始串值
#define	MAX_RAW_MFC_LEN			64

int		WINAPI DJTrk_GetRcv_Raw_MFC ( int trunkID, BYTE *pRawMFC );
int		WINAPI DJTrk_GetSend_Raw_MFC ( int trunkID, BYTE *pRawMFC );
// end of add

// add in 2004.10.10,可以在tce1_32.dll中调用模拟卡tc08a32.dll中的部分函数
void  WINAPI DJ_Tc08a32_ResetCallerIDBuffer(WORD wChnlNo);
WORD  WINAPI DJ_Tc08a32_GetCallerIDRawStr(WORD wChnlNo, LPSTR IDRawStr);
WORD  WINAPI DJ_Tc08a32_GetCallerIDStr(WORD wChnlNo, LPSTR IDStr);
// end of add in 2004.10.10

// add in 2005.01.05,可以将trunk的输出设定为某个固定的值
int		WINAPI DJTrk_SetOutputConst ( int trunkID, BYTE cbOutputVal );
// end of add in 2005.01.05,

// add in 2005.01.10,

int		WINAPI	DJSys_Get_iEnableWaveFormat ( void );			// 可以得到iEnableWaveFormat的值(即:TCE1-32.INI中WaveFormat的值)
void	WINAPI	DJSys_WF_MayBe_AddHead ( HANDLE  hfFile );		// 填写Wave文件的头
void	WINAPI	DJSys_WF_MayBe_ReFillHead ( HANDLE  hfFile );	// 填写Wave文件的头

int		WINAPI	DJVoc_GetTimeSlot(int voiceID);
int		WINAPI	DJVoc_ConnectFromTS(int voiceID, int iTS);
int		WINAPI	DJVoc_DisconnectTS(int voiceID);

// end of add in 2005.01.10,

// add for support Volume Adjust 2005.01.27
#define	VOL_ADJUST_RECORD		0
#define	VOL_ADJUST_PLAY			1

int WINAPI DJVoc_AdjustVocVol ( int voiceID, int iMode, int iVolAdjust );
// end of add 2005.01.27

#ifdef	__cplusplus
}
#endif

#endif


⌨️ 快捷键说明

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