DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
snd_ringbuffer_t Struct Reference

#include <snd_main.h>

Collaboration diagram for snd_ringbuffer_t:

Data Fields

unsigned int endframe
 index of the first EMPTY frame in the "ring" buffer may be smaller than startframe if the "ring" buffer has wrapped
snd_format_t format
unsigned int maxframes
 max size (buffer size), in sample frames
unsigned char * ring
unsigned int startframe
 index of the first frame in the buffer if startframe == endframe, the bufffer is empty

Detailed Description

Definition at line 45 of file snd_main.h.

Field Documentation

◆ endframe

unsigned int snd_ringbuffer_t::endframe

index of the first EMPTY frame in the "ring" buffer may be smaller than startframe if the "ring" buffer has wrapped

Definition at line 55 of file snd_main.h.

◆ format

snd_format_t snd_ringbuffer_t::format

Definition at line 47 of file snd_main.h.

Referenced by Snd_CreateRingBuffer().

◆ maxframes

unsigned int snd_ringbuffer_t::maxframes

max size (buffer size), in sample frames

Definition at line 49 of file snd_main.h.

Referenced by Snd_CreateRingBuffer().

◆ ring

unsigned char* snd_ringbuffer_t::ring

Definition at line 48 of file snd_main.h.

Referenced by Snd_CreateRingBuffer().

◆ startframe

unsigned int snd_ringbuffer_t::startframe

index of the first frame in the buffer if startframe == endframe, the bufffer is empty

Definition at line 52 of file snd_main.h.


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