Added audio capture support to SDL backend.

This lets you speak through VoIP when not using OpenAL. Previously you could
listen but not speak.
This commit is contained in:
Ryan C. Gordon 2018-04-13 22:38:17 -04:00
parent 2f62394174
commit 69f92daf08
4 changed files with 165 additions and 7 deletions

View file

@ -176,6 +176,15 @@ void SNDDMA_BeginPainting (void);
void SNDDMA_Submit(void);
#ifdef USE_VOIP
void SNDDMA_StartCapture(void);
int SNDDMA_AvailableCaptureSamples(void);
void SNDDMA_Capture(int samples, byte *data);
void SNDDMA_StopCapture(void);
void SNDDMA_MasterGain(float val);
#endif
//====================================================================
#define MAX_CHANNELS 96