From: havoc Date: Thu, 20 Jul 2006 04:29:54 +0000 (+0000) Subject: changed SECONDARY_BUFFER_SIZE to be a multiple of 32768 so that it is roughly a power... X-Git-Tag: xonotic-v0.1.0preview~3863 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=011bda4743f481c7b085ded092f720c3765ae0a7;p=xonotic%2Fdarkplaces.git changed SECONDARY_BUFFER_SIZE to be a multiple of 32768 so that it is roughly a power of 2... git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6517 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_win.c b/snd_win.c index 1bed6c3d..502468a4 100644 --- a/snd_win.c +++ b/snd_win.c @@ -88,7 +88,9 @@ HRESULT (WINAPI *pDirectSoundCreate)(GUID FAR *lpGUID, LPDIRECTSOUND FAR *lplpDS static unsigned int wav_buffer_size; // DirectSound output: 64KB in 1 buffer -#define SECONDARY_BUFFER_SIZE(fmt_ptr) ((fmt_ptr)->width * (fmt_ptr)->channels * (fmt_ptr)->speed / 2) +//#define SECONDARY_BUFFER_SIZE(fmt_ptr) ((fmt_ptr)->width * (fmt_ptr)->channels * (fmt_ptr)->speed / 2) +// LordHavoc: changed this to be a multiple of 32768 +#define SECONDARY_BUFFER_SIZE(fmt_ptr) ((fmt_ptr)->channels * 32768) typedef enum sndinitstat_e {SIS_SUCCESS, SIS_FAILURE, SIS_NOTAVAIL} sndinitstat;