#include <alsa/asoundlib.h>#include <pthread.h>#include <iostream>#include "file_operation.h"#include "formats.h"

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) |
| 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.
| 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.