QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

communication structure between output drivers and renderer More...

Data Fields

unsigned char * buffer
 destination for mixed sound More...
 
int channels
 number of output channels More...
 
int framepos
 position of dma cursor More...
 
int frames
 frames in buffer 1 frame = channels samples More...
 
int samplebits
 bits per sample More...
 
int speed
 sample rate More...
 
int submission_chunk
 don't mix less than this # More...
 
void(* xfer )(portable_samplepair_t *paintbuffer, int count, float volume)
 Transfer mixed samples to the output. More...
 
void * xfer_data
 Optional data for the xfer function. More...
 

Detailed Description

communication structure between output drivers and renderer

Field Documentation

unsigned char* buffer

destination for mixed sound

int channels

number of output channels

int framepos

position of dma cursor

int frames

frames in buffer 1 frame = channels samples

int samplebits

bits per sample

int speed

sample rate

int submission_chunk

don't mix less than this #

void(* xfer)(portable_samplepair_t *paintbuffer, int count, float volume)

Transfer mixed samples to the output.

Parameters
paintbufferThe buffer of mixed samples to be transferred.
countThe number of sample to transfer.
volumeThe gain for the samples.
void* xfer_data

Optional data for the xfer function.


The documentation for this struct was generated from the following file: