Classes | Enumerations | Functions
linuxrec.h File Reference
#include <alsa/asoundlib.h>
#include <pthread.h>
#include <iostream>
#include "file_operation.h"
#include "formats.h"
Include dependency graph for linuxrec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  record_dev_id
 
class  RecordAlsaAPI
 
struct  recorder
 
class  VDADetection
 

Enumerations

enum  {
  RECORD_STATE_CREATED, RECORD_STATE_CLOSING, RECORD_STATE_READY, RECORD_STATE_STOPPING,
  RECORD_STATE_RECORDING
}
 

Functions

void closeRecorder (struct recorder *rec)
 
int createRecorder (struct recorder **out_rec, void(*on_data_ind)(char *data, unsigned long len, void *user_para), void *user_cb_para)
 
void destroyRecorder (struct recorder *rec)
 
record_dev_id getDefaultInputDevice ()
 
int getInputDeviceNum ()
 
int isRecordStopped (struct recorder *rec)
 
int openRecorder (struct recorder *rec, record_dev_id dev, WAVEFORMATEX *fmt, std::string base_path)
 
int startRecord (struct recorder *rec)
 
int stopRecord (struct recorder *rec)
 

Enumeration Type Documentation

anonymous enum
Enumerator
RECORD_STATE_CREATED 
RECORD_STATE_CLOSING 
RECORD_STATE_READY 
RECORD_STATE_STOPPING 
RECORD_STATE_RECORDING 

Definition at line 22 of file linuxrec.h.

Function Documentation

void closeRecorder ( struct recorder rec)

Definition at line 738 of file linuxrec.cpp.

int createRecorder ( struct recorder **  out_rec,
void(*)(char *data, unsigned long len, void *user_para)  on_data_ind,
void *  user_cb_para 
)
void destroyRecorder ( struct recorder rec)

Definition at line 717 of file linuxrec.cpp.

record_dev_id getDefaultInputDevice ( )

Definition at line 680 of file linuxrec.cpp.

int getInputDeviceNum ( )

Definition at line 693 of file linuxrec.cpp.

int isRecordStopped ( struct recorder rec)

Definition at line 786 of file linuxrec.cpp.

int openRecorder ( struct recorder rec,
record_dev_id  dev,
WAVEFORMATEX fmt,
std::string  base_path 
)

Definition at line 724 of file linuxrec.cpp.

int startRecord ( struct recorder rec)

Definition at line 749 of file linuxrec.cpp.

int stopRecord ( struct recorder rec)

Definition at line 766 of file linuxrec.cpp.



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