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

📄 callaudio.h

📁 KphoneSI (kpsi) is a SIP (Session Initiation Protocol) user agent for Linux, with which you can in
💻 H
字号:
//// C++ Interface: callaudio2//// Description: ////// Author: root <root@papa>, (C) 2004//// Copyright: See COPYING file that comes with this distribution////#ifndef CALLAUDIO_H_INCLUDED#define CALLAUDIO_H_INCLUDED#include <qobject.h>#include <qstring.h>#include <sys/types.h>#include "../dissipate2/udpmessagesocket.h"#include "../dissipate2/sipcall.h"#include "sessioncontrol.h"#include "dspaudioout.h"#include "dspaudioin.h"#include "dspoutrtp.h"#include "dspoutoss.h"#include "dspoutalsa.h"#include "../dissipate2/sdpbuild.h"class DspAudio;class DspOutRtp;/**@short This Class makes noise* CallAudio allocates and starts the audio related RTP and Sound ResourcesThe Class is used by KCallWidget*/class CallAudio : public QObject{Q_OBJECTpublic:    CallAudio(SessionControl *sessionC, const char *name );    ~CallAudio();	bool isOutputOSS( void ) const { return useoss; }	void useOSS( void );	// Call attachment/***	stop Listening to Audio*/	        void stopListeningAudio( int aU );/***	stop sending audio via RTP*/		void stopSendingAudio( int aU );//	void stopEarlyAudio( int aU );/***	begin to send a DTMF tone*/		void startDTMF(int tone); // Start DTMF tone generation/***	send a DTMF Sequence*/		void startDTMFSeq(QString string, int size); // Start DTMF tone generation/***	stop to send a DTMF tone*/		void stopDTMF(void);  // Stop DTMF tone generation/***	allocate outgoing audio related RTP resources*/		int audioOut( SdpBuild *call,int aU );/***	allocate incoming audio related RTP resources,*	attach audio to the audio card and start transmission*/		void audioIn( SdpBuild *call, int aU );		// Settings	bool isAudioOn( void );//	void setStunSrv( QString newStunSrv );//	QString getStunSrv(void) {return stunSrv;}	void ringOnce(int mul);		void clearMe(int cwuser);		bool audioOwner(int cwuser);	UDPMessageSocket *getSocket(void) {return &socket;}signals:private slots:	void handleDTMFSeq(void);private:	SessionControl *sc;//	DspOut		*out;//	DspOut		*in;	DspOutRtp  *outrtp;	DspOutRtp  *inrtp;	DspOutOss  *inoss;	DspOutAlsa *inalsa;	DspOutOss  *outoss; 	DspOutAlsa *outalsa; 	DspAudioOut	*output;	DspAudioIn	*input; 	int audio_fd;	bool useoss;	QString ossfilename;	QString ossfilename2;//	QString videoSW;	int payload;//	codecType codec;//	codecType rtpCodec;//	int rtpCodecNum;//	QString bodyMask;//	pid_t pidVideo;	bool useStun;	bool symMedia;//	QString stunSrv;	char charDTMF[12];	QTimer *dtmfTimer;	int dtmfCount;	int dtmfSize;	QString dtmfString;//	QString pFix;	/*	 * Common socket for both streams, used only in symmetric mode	 */	UDPMessageSocket socket;	int debug;	int audioUser;};#endif //CALLAUDIO_H_INCLUDED

⌨️ 快捷键说明

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