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.

Referenced by Buffer_Callback(), S_PaintAndSubmit(), S_Shutdown(), and S_Startup().

◆ format

◆ 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 Buffer_Callback(), S_PaintAndSubmit(), S_SoundInfo_f(), S_Startup(), S_StopAllSounds(), and Snd_CreateRingBuffer().

◆ ring

unsigned char* snd_ringbuffer_t::ring

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

Referenced by Buffer_Callback(), S_PaintAndSubmit(), and S_Startup().


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