📄 dspoutalsa.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -