Con_Printf("%i = S_RawSamples_QueueWantsMore()\n", samples);
// calculate how much source data we need to fill the output...
- s = samples * cl_videosoundrate / shm->speed;
+ s = samples * cl_videosoundrate / S_RawSamples_SampleRate();
// reallocate processing buffer if needed
if (cl_videosoundresamplelength < samples)
vertices[ 8] = x2;vertices[ 9] = y2;vertices[10] = 0;vertices[11] = 0;
vertices[12] = x1;vertices[13] = y2;vertices[14] = 0;vertices[15] = 0;
mesh.texture = cl_videotexture;
- mesh.numindices = 6;
+ mesh.numtriangles = 2;
mesh.numvertices = 4;
mesh.indices = indices;
mesh.vertices = vertices;