#include "snd_ogg.h"
#include "csprogs.h"
#include "cl_collision.h"
+#ifdef CONFIG_CD
#include "cdaudio.h"
+#endif
#define SND_MIN_SPEED 8000
{
unsigned int size;
- size = sfx->memsize;
+ size = (unsigned int)sfx->memsize;
Con_Printf ("%c%c%c(%5iHz %2db %6s) %8i : %s\n",
(sfx->loopstart < sfx->total_length) ? 'L' : ' ',
(sfx->flags & SFXFLAG_STREAMED) ? 'S' : ' ',
if (snd_spatialization_occlusion.integer)
{
if(snd_spatialization_occlusion.integer & 1)
- if(listener_pvs)
+ if(listener_pvs && cl.worldmodel)
{
int cluster = cl.worldmodel->brush.PointInLeaf(cl.worldmodel, ch->origin)->clusterindex;
if(cluster >= 0 && cluster < 8 * listener_pvsbytes && !CHECKPVSBIT(listener_pvs, cluster))
if (snd_renderbuffer == NULL)
return;
+#ifdef CONFIG_CD
// stop CD audio because it may be using a faketrack
CDAudio_Stop();
+#endif
if (simsound || SndSys_LockRenderBuffer ())
{