mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
50ed45c9b1
commit
ec6cb1debd
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue