dspoutalsa.h

来自「kphone-4.2,SHELL协议的VOIP电话」· C头文件 代码 · 共 36 行

H
36
字号
#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};#endif  // DSPOUTOSS_H_INCLUDED

⌨️ 快捷键说明

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