Public Member Functions | Private Attributes | List of all members
RecordAlsaAPI Class Reference

#include <linuxrec.h>

Public Member Functions

void closeRecord ()
 
void initRecord (struct recorder *rec, record_dev_id dev, WAVEFORMATEX *fmt)
 
int setRecordDuration (const float duration_time)
 
struct DataBuff startRecord ()
 

Private Attributes

struct DataBuff audio_pcm_
 
int audiobuf_size_
 
int duration_time_
 
snd_pcm_format_t format_
 
snd_pcm_uframes_t frames_
 
snd_pcm_t * handle_
 
snd_pcm_hw_params_t * params_
 
struct recorderrecord_
 
int record_loop_
 
unsigned int record_rate_
 

Detailed Description

Definition at line 67 of file linuxrec.h.

Member Function Documentation

void RecordAlsaAPI::closeRecord ( )

Definition at line 215 of file linuxrec.cpp.

void RecordAlsaAPI::initRecord ( struct recorder rec,
record_dev_id  dev,
WAVEFORMATEX fmt 
)

Definition at line 80 of file linuxrec.cpp.

int RecordAlsaAPI::setRecordDuration ( const float  duration_time)

Definition at line 181 of file linuxrec.cpp.

struct DataBuff RecordAlsaAPI::startRecord ( )

Definition at line 188 of file linuxrec.cpp.

Member Data Documentation

struct DataBuff RecordAlsaAPI::audio_pcm_
private

Definition at line 84 of file linuxrec.h.

int RecordAlsaAPI::audiobuf_size_
private

Definition at line 82 of file linuxrec.h.

int RecordAlsaAPI::duration_time_
private

Definition at line 83 of file linuxrec.h.

snd_pcm_format_t RecordAlsaAPI::format_
private

Definition at line 79 of file linuxrec.h.

snd_pcm_uframes_t RecordAlsaAPI::frames_
private

Definition at line 80 of file linuxrec.h.

snd_pcm_t* RecordAlsaAPI::handle_
private

Definition at line 81 of file linuxrec.h.

snd_pcm_hw_params_t* RecordAlsaAPI::params_
private

Definition at line 77 of file linuxrec.h.

struct recorder* RecordAlsaAPI::record_
private

Definition at line 76 of file linuxrec.h.

int RecordAlsaAPI::record_loop_
private

Definition at line 85 of file linuxrec.h.

unsigned int RecordAlsaAPI::record_rate_
private

Definition at line 78 of file linuxrec.h.


The documentation for this class was generated from the following files:


xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:54