snd_sdl.c (SNDDMA_Init): set number of samples to 4096 for sampling rates higher than 56, i.e. 96 kHz.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@862 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2013-07-24 09:28:01 +00:00
parent 50ed45c9b1
commit ec6cb1debd

View file

@ -22,6 +22,7 @@
*/
#include "quakedef.h"
#if defined(SDL_FRAMEWORK) || defined(NO_SDL_CONFIG)
#include <SDL/SDL.h>
#else
@ -94,8 +95,10 @@ qboolean SNDDMA_Init (dma_t *dma)
desired.samples = 512;
else if (desired.freq <= 44100)
desired.samples = 1024;
else if (desired.freq <= 56000)
desired.samples = 2048; /* for 48 kHz */
else
desired.samples = 2048; /* shrug */
desired.samples = 4096; /* for 96 kHz */
desired.callback = paint_audio;
desired.userdata = NULL;