clears audioqueue when video stops
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2089
d7cf8633-e32d-0410-b094-
e92efae38249
cl_videosoundresampledata = NULL;
cl_videotexturepool = R_AllocTexturePool();
cl_videosoundresampledata = NULL;
cl_videotexturepool = R_AllocTexturePool();
- cl_videotexture = R_LoadTexture(cl_videotexturepool, "videotexture", cl_videoimagewidth, cl_videoimageheight, NULL, TEXTYPE_RGBA, 0);
+ cl_videotexture = R_LoadTexture(cl_videotexturepool, "videotexture", cl_videoimagewidth, cl_videoimageheight, NULL, TEXTYPE_RGBA, TEXF_FRAGMENT);
}
void CL_VideoStop(void)
{
cl_videoplaying = false;
}
void CL_VideoStop(void)
{
cl_videoplaying = false;
+ S_RawSamples_ClearQueue();
+
if (cl_videostream)
dpvsimpledecode_close(cl_videostream);
cl_videostream = NULL;
if (cl_videostream)
dpvsimpledecode_close(cl_videostream);
cl_videostream = NULL;