Open source remastering of the Freespace 2 engine
dscap.cpp File Reference
#include "globalincs/pstypes.h"
#include "sound/ds.h"
#include "sound/dscap.h"
#include "sound/openal.h"
#include <string>

Go to the source code of this file.


struct  ALcapture_t


typedef struct ALcapture_t ALcapture_t


int dscap_init ()
void dscap_release_buffer ()
int dscap_create_buffer (int freq, int bits_per_sample, int nchannels, int nseconds)
int dscap_supported ()
int dscap_start_record ()
int dscap_stop_record ()
void dscap_close ()
int dscap_max_buffersize ()
int dscap_get_raw_data (unsigned char *outbuf, unsigned int max_size)


int dscap_inited = 0
int dscap_recording = 0

Typedef Documentation

typedef struct ALcapture_t ALcapture_t

Function Documentation

void dscap_close ( )

Definition at line 172 of file dscap.cpp.

int dscap_create_buffer ( int  freq,
int  bits_per_sample,
int  nchannels,
int  nseconds 

Definition at line 70 of file dscap.cpp.

int dscap_get_raw_data ( unsigned char *  outbuf,
unsigned int  max_size 

Definition at line 202 of file dscap.cpp.

int dscap_init ( )

Definition at line 40 of file dscap.cpp.

int dscap_max_buffersize ( )

Definition at line 183 of file dscap.cpp.

void dscap_release_buffer ( )

Definition at line 59 of file dscap.cpp.

int dscap_start_record ( )

Definition at line 132 of file dscap.cpp.

int dscap_stop_record ( )

Definition at line 152 of file dscap.cpp.

int dscap_supported ( )

Definition at line 122 of file dscap.cpp.

Variable Documentation

int dscap_inited = 0

Definition at line 18 of file dscap.cpp.

int dscap_recording = 0

Definition at line 19 of file dscap.cpp.