dspoutalsa.h

来自「KphoneSI (kpsi) is a SIP (Session Initia」· C头文件 代码 · 共 37 行

H
37
字号
#ifndef DSPOUTALSA_H_INCLUDED#define DSPOUTALSA_H_INCLUDED#include <alsa/asoundlib.h>#include "dspout.h"class DspOutAlsa : public DspOut{public:	/**	 * Constructs a DspOutAlsa object representing the given	 * filename.  Default is default.	 */	DspOutAlsa( const QString &fileName = "default" ); //Changed by bobosch	/**	 * Destructor.  Will close the device if it is open.	 */	virtual ~DspOutAlsa( void );	bool openDevice( DeviceMode mode );	bool writeBuffer( void );	unsigned int readableBytes( void );	bool readBuffer( int bytes );	int audio_fd;private:	int err;	snd_pcm_t *handle;	snd_pcm_hw_params_t *hw_params;	snd_pcm_uframes_t buffer_size;	QString devname;         // device filename	unsigned int rate;};#endif  // DSPOUTALSA_H_INCLUDED

⌨️ 快捷键说明

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